org.sintef.mofscript.uml2Extensions.runtime
Class UMLFunctionCallEvaluator
java.lang.Object
org.sintef.mofscript.runtime.expression.ExpressionEvaluator
org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator
org.sintef.mofscript.runtime.expression.FunctionCallEvaluator
org.sintef.mofscript.uml2Extensions.runtime.UMLFunctionCallEvaluator
public class UMLFunctionCallEvaluator
- extends FunctionCallEvaluator
Specialised function call evaluator
for UML2 types of objects
Handles a set of predefined operations for UML2 types.
- Author:
- jol
Method Summary |
protected java.lang.Object |
executeOperation(java.lang.String fName,
java.lang.Object variable)
|
protected java.lang.Object |
handleVariableFunctionCall(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
Handles the variable function call
If the call is a valid UML2 call this is treated, else
the call is delegated to super class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLFunctionCallEvaluator
public UMLFunctionCallEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
- constructor
- Parameters:
expression
- env
- ownerRuleExecutor
-
handleVariableFunctionCall
protected java.lang.Object handleVariableFunctionCall(java.lang.Object variable,
java.lang.String fName,
FunctionCall f)
throws MofScriptExecutionException
- Handles the variable function call
If the call is a valid UML2 call this is treated, else
the call is delegated to super class.
- Overrides:
handleVariableFunctionCall
in class FunctionCallEvaluator
- Returns:
-
- Throws:
MofScriptExecutionException
executeOperation
protected java.lang.Object executeOperation(java.lang.String fName,
java.lang.Object variable)
throws MofScriptExecutionException
- Throws:
MofScriptExecutionException