org.sintef.mofscript.uml2Extensions.runtime
Class UMLFunctionCallEvaluator

java.lang.Object
  extended by org.sintef.mofscript.runtime.expression.ExpressionEvaluator
      extended by org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator
          extended by org.sintef.mofscript.runtime.expression.FunctionCallEvaluator
              extended by 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

Field Summary
 
Fields inherited from class org.sintef.mofscript.runtime.expression.FunctionCallEvaluator
evaluator, p1, p1Result, p2, p2Result, p3, p3Result
 
Fields inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength
 
Constructor Summary
UMLFunctionCallEvaluator(Expression expression, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
          constructor
 
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 org.sintef.mofscript.runtime.expression.FunctionCallEvaluator
evaluateParameterValues, evaluateSimple, handleFunctionCall, handleModelEscapeFunction, handleOclGeneralFunction, handleSystemFunction, isKindOf, isSystemFunction, isTypeOf
 
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
 

Constructor Detail

UMLFunctionCallEvaluator

public UMLFunctionCallEvaluator(Expression expression,
                                ExecutionEnvironment env,
                                RuleExecutor ownerRuleExecutor)
constructor

Parameters:
expression -
env -
ownerRuleExecutor -
Method Detail

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