|
||||||||||
| 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
org.sintef.mofscript.runtime.expression.FunctionCallEvaluator
public class FunctionCallEvaluator
Handles function calls
| Field Summary | |
|---|---|
protected ExpressionEvaluator |
evaluator
|
protected ValueExpression |
p1
|
protected java.lang.Object |
p1Result
|
protected ValueExpression |
p2
|
protected java.lang.Object |
p2Result
|
protected ValueExpression |
p3
|
protected java.lang.Object |
p3Result
|
| Fields inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator |
|---|
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter |
| Constructor Summary | |
|---|---|
FunctionCallEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
evaluateParameterValues(java.util.List parameters)
Evaluates parameter values |
protected java.lang.Object |
evaluateSimple(java.lang.Object inputObject)
Evaluates simple |
protected java.lang.Object |
handleFunctionCall(FunctionCall f,
java.lang.Object inputContext)
Handles the function call |
protected java.lang.Object |
handleModelEscapeFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
Handles model escape functions |
protected java.lang.Object |
handleOclGeneralFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
Handles OCL general functions |
protected java.lang.Object |
handleSelectFunction(java.lang.Object variable,
FunctionCall f)
|
protected java.lang.Object |
handleStoreFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
|
protected java.lang.Object |
handleSystemFunction(java.lang.String fName,
FunctionCall f)
Handles the system function |
protected java.lang.Object |
handleVariableFunctionCall(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
Handles variable function calls |
protected void |
insertTraceableParameter(ValueExpression p,
MOFScriptParameter param)
Checks if a parameter has a traceable value, and if so, inserts it into the collection of traceable variables |
static java.lang.Boolean |
isKindOf(org.eclipse.emf.ecore.EObject toCheck,
java.lang.Object clazz)
Checks whether an EObject is kind of Object clazz |
protected boolean |
isSystemFunction(java.lang.String functionName)
Checks if the function is a system function e.g. time or java |
static java.lang.Boolean |
isTypeOf(org.eclipse.emf.ecore.EObject toCheck,
java.lang.Object clazz)
Checks whether an EObject is of type Object clazz |
| Methods inherited from class org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator |
|---|
checkAdditionalExpressionParts, evaluate, handleAdditionalFunction, handleStringFunction |
| 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 |
| Field Detail |
|---|
protected ValueExpression p1
protected ValueExpression p2
protected ValueExpression p3
protected java.lang.Object p1Result
protected java.lang.Object p2Result
protected java.lang.Object p3Result
protected ExpressionEvaluator evaluator
| Constructor Detail |
|---|
public FunctionCallEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
expression - The expression to be evaluatedenv - The ExecutionEnvironmentownerRuleExecutor - The rule executor that owns the expression| Method Detail |
|---|
protected java.lang.Object evaluateSimple(java.lang.Object inputObject)
throws MofScriptExecutionException
evaluateSimple in class SimpleExpressionEvaluatorinputObject -
MofScriptExecutionException
protected void evaluateParameterValues(java.util.List parameters)
throws MofScriptExecutionException
parameters -
MofScriptExecutionException
protected java.lang.Object handleFunctionCall(FunctionCall f,
java.lang.Object inputContext)
f - inputContext -
protected void insertTraceableParameter(ValueExpression p,
MOFScriptParameter param)
p - param -
protected java.lang.Object handleVariableFunctionCall(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
variable - fName - f -
MofScriptExecutionException
protected java.lang.Object handleOclGeneralFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
variable - fName - f -
MofScriptExecutionException
protected java.lang.Object handleModelEscapeFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
variable - fName - f -
MofScriptExecutionException
protected java.lang.Object handleStoreFunction(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
variable - fName - f -
MofScriptExecutionExceptionprotected boolean isSystemFunction(java.lang.String functionName)
functionName -
protected java.lang.Object handleSystemFunction(java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
fName - f -
MofScriptExecutionException
protected java.lang.Object handleSelectFunction(java.lang.Object variable,
FunctionCall f)
throws MofScriptExecutionException
variable - f -
MofScriptExecutionException
public static java.lang.Boolean isTypeOf(org.eclipse.emf.ecore.EObject toCheck,
java.lang.Object clazz)
toCheck - clazz -
public static java.lang.Boolean isKindOf(org.eclipse.emf.ecore.EObject toCheck,
java.lang.Object clazz)
toCheck - clazz -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||