|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sintef.mofscript.runtime.expression.ExpressionEvaluator
org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator
public abstract class SimpleExpressionEvaluator
Handles simple expressions
| Field Summary |
|---|
| Fields inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator |
|---|
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter |
| Constructor Summary | |
|---|---|
SimpleExpressionEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
Constructor |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
checkAdditionalExpressionParts(java.lang.Object currentValue)
Checks appended expression parts |
protected java.lang.Object |
evaluate(java.lang.Object inputObject)
To be defined by subclasses - the actual evaluation of the expression |
protected abstract java.lang.Object |
evaluateSimple(java.lang.Object inputObject)
|
protected java.lang.Object |
handleAdditionalFunction(java.lang.Object value,
FunctionCall lf)
Handles additional functions |
protected java.lang.Object |
handleStringFunction(java.lang.Object value,
FunctionCall lf)
Handles string functions |
| Methods inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator |
|---|
evaluateExpression, resetPosisionCounter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleExpressionEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
expression - The expression to be evaluatedenv - The ExecutionEnvironmentownerRuleExecutor - The rule executor that owns the expression| Method Detail |
|---|
protected final java.lang.Object evaluate(java.lang.Object inputObject)
throws MofScriptExecutionException
ExpressionEvaluator
evaluate in class ExpressionEvaluatorinputObject -
MofScriptExecutionException
protected abstract java.lang.Object evaluateSimple(java.lang.Object inputObject)
throws MofScriptExecutionException
MofScriptExecutionExceptionprotected java.lang.Object checkAdditionalExpressionParts(java.lang.Object currentValue)
currentValue -
protected java.lang.Object handleAdditionalFunction(java.lang.Object value,
FunctionCall lf)
throws MofScriptExecutionException
value - lf -
MofScriptExecutionException
protected java.lang.Object handleStringFunction(java.lang.Object value,
FunctionCall lf)
throws MofScriptExecutionException
value - lf -
MofScriptExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||