Package org.droolsassert.util
Class MvelProcessor
- java.lang.Object
-
- org.droolsassert.util.PatternProcessor
-
- org.droolsassert.util.MvelProcessor
-
public class MvelProcessor extends PatternProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>executionContextprotected org.mvel2.ParserContextparserContext-
Fields inherited from class org.droolsassert.util.PatternProcessor
pattern
-
-
Constructor Summary
Constructors Constructor Description MvelProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectdefine(String name, Object value)Define execution context variable<T> Tevaluate(String expression)protected Map<String,Object>executionContext()Execution context which could be reset withreset()voidimportPackage(String packageName)protected org.mvel2.ParserContextparserContext()Parser context used for evaluation.voidreset()Reset execution context variablesprotected Stringresolve(Matcher matcher)-
Methods inherited from class org.droolsassert.util.PatternProcessor
process, process
-
-
-
-
Method Detail
-
importPackage
public void importPackage(String packageName)
-
define
public Object define(String name, Object value)
Define execution context variable- Parameters:
name-value-- Returns:
-
reset
public void reset()
Reset execution context variables
-
resolve
protected String resolve(Matcher matcher)
- Specified by:
resolvein classPatternProcessor
-
evaluate
public <T> T evaluate(String expression)
-
executionContext
protected Map<String,Object> executionContext()
Execution context which could be reset withreset()
-
-