org.eclipse.mofscript.runtime.uml2Extensions
Class UMLFunctionCallEvaluator

java.lang.Object
  extended by org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
      extended by org.eclipse.mofscript.runtime.expression.SimpleExpressionEvaluator
          extended by org.eclipse.mofscript.runtime.expression.FunctionCallEvaluator
              extended by org.eclipse.mofscript.runtime.uml2Extensions.UMLFunctionCallEvaluator
Direct Known Subclasses:
UMLTraceabilityFunctionCallEvaluator

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.eclipse.mofscript.runtime.expression.FunctionCallEvaluator
evaluator, l, p1, p1Result, p2, p2Result, p3, p3Result
 
Fields inherited from class org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter
 
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 variableFunctionCall(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.eclipse.mofscript.runtime.expression.FunctionCallEvaluator
cloneFunction, evaluateParameterValues, evaluateSimple, handleFunctionCall, hashTableFunction, insertModelRefParameter, isKindOf, isSystemFunction, isTypeOf, listFunction, metaOperation, oclGeneralFunction, propertiesFunction, selectFunction, shallowCopy, storeFunction, systemFunction
 
Methods inherited from class org.eclipse.mofscript.runtime.expression.SimpleExpressionEvaluator
checkAdditionalExpressionParts, evaluate, handleAdditionalFunction, handleStringFunction
 
Methods inherited from class org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
evaluateExpression, getExpression, getOwnerRule, 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

variableFunctionCall

protected java.lang.Object variableFunctionCall(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:
variableFunctionCall in class FunctionCallEvaluator
Returns:
Throws:
MofScriptExecutionException

executeOperation

protected java.lang.Object executeOperation(java.lang.String fName,
                                            java.lang.Object variable)
                                     throws MofScriptExecutionException
Throws:
MofScriptExecutionException