org.eclipse.mofscript.runtime.expression
Class FunctionCallEvaluator

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
Direct Known Subclasses:
TraceabilityFunctionCallEvaluator, UMLFunctionCallEvaluator

public class FunctionCallEvaluator
extends SimpleExpressionEvaluator

Handles function calls

Author:
jol

Constructor Summary
FunctionCallEvaluator(Expression expression, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
          Constructor
 
Method Summary
static java.lang.Boolean isKindOf(org.eclipse.emf.ecore.EObject toCheck, java.lang.Object clazz)
          Checks whether an EObject is kind of Object clazz
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.eclipse.mofscript.runtime.expression.ExpressionEvaluator
evaluateExpression, getExpression, getOwnerRule, resetPosisionCounter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionCallEvaluator

public FunctionCallEvaluator(Expression expression,
                             ExecutionEnvironment env,
                             RuleExecutor ownerRuleExecutor)
Constructor

Parameters:
expression - The expression to be evaluated
env - The ExecutionEnvironment
ownerRuleExecutor - The rule executor that owns the expression
Method Detail

isTypeOf

public static java.lang.Boolean isTypeOf(org.eclipse.emf.ecore.EObject toCheck,
                                         java.lang.Object clazz)
Checks whether an EObject is of type Object clazz

Parameters:
toCheck -
clazz -
Returns:

isKindOf

public static java.lang.Boolean isKindOf(org.eclipse.emf.ecore.EObject toCheck,
                                         java.lang.Object clazz)
Checks whether an EObject is kind of Object clazz

Parameters:
toCheck -
clazz -
Returns: