org.eclipse.mofscript.runtime.expression
Class SelectExpressionEvaluator

java.lang.Object
  extended by org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
      extended by org.eclipse.mofscript.runtime.expression.SelectExpressionEvaluator

public class SelectExpressionEvaluator
extends ExpressionEvaluator


Field Summary
 
Fields inherited from class org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter
 
Constructor Summary
SelectExpressionEvaluator(Expression expression, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
           
 
Method Summary
protected  java.lang.Object evaluate(java.lang.Object inputObject)
          To be defined by subclasses - the actual evaluation of the expression
protected  org.eclipse.emf.ecore.EClassifier getEClassForEObject(org.eclipse.emf.ecore.EPackage mm, org.eclipse.emf.ecore.EObject eobj)
          NB - Copied from IteratorStatementExecutor (TODO: refactor)
 
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

SelectExpressionEvaluator

public SelectExpressionEvaluator(Expression expression,
                                 ExecutionEnvironment env,
                                 RuleExecutor ownerRuleExecutor)
Method Detail

evaluate

protected java.lang.Object evaluate(java.lang.Object inputObject)
                             throws MofScriptExecutionException
Description copied from class: ExpressionEvaluator
To be defined by subclasses - the actual evaluation of the expression

Specified by:
evaluate in class ExpressionEvaluator
Returns:
Throws:
MofScriptExecutionException

getEClassForEObject

protected org.eclipse.emf.ecore.EClassifier getEClassForEObject(org.eclipse.emf.ecore.EPackage mm,
                                                                org.eclipse.emf.ecore.EObject eobj)
NB - Copied from IteratorStatementExecutor (TODO: refactor)

Parameters:
metaModelRef -
eobj -
Returns: