|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sintef.mofscript.runtime.expression.ExpressionEvaluator
public abstract class ExpressionEvaluator
Handles expressions
Field Summary | |
---|---|
protected ExecutionEnvironment |
_env
|
protected Expression |
_expression
|
protected RuleExecutor |
_ownerRuleExecutor
|
protected static int |
_positionCounter
|
protected static int |
_referenceStringLength
|
protected static int |
_stringPosCounter
|
Constructor Summary | |
---|---|
ExpressionEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
Constructor |
Method Summary | |
---|---|
protected abstract java.lang.Object |
evaluate(java.lang.Object inputObject)
To be defined by subclasses - the actual evaluation of the expression |
java.lang.Object |
evaluateExpression(java.lang.Object inputObject)
Evaluates an expression and returns the value as an Object |
static void |
resetPosisionCounter()
Resetes the position counter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Expression _expression
protected ExecutionEnvironment _env
protected RuleExecutor _ownerRuleExecutor
protected static int _positionCounter
protected static int _stringPosCounter
protected static int _referenceStringLength
Constructor Detail |
---|
public ExpressionEvaluator(Expression expression, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
expression
- The expression to be evaluatedenv
- The ExecutionEnvironmentownerRuleExecutor
- The rule executor that owns the expressionMethod Detail |
---|
public final java.lang.Object evaluateExpression(java.lang.Object inputObject) throws MofScriptExecutionException
exp
-
MofScriptExecutionException
public static void resetPosisionCounter()
protected abstract java.lang.Object evaluate(java.lang.Object inputObject) throws MofScriptExecutionException
MofScriptExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |