org.eclipse.mofscript.runtime.expression
Class ComparisonExpressionEvaluator

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

public class ComparisonExpressionEvaluator
extends ExpressionEvaluator

Handles comparison expressions

Author:
jol

Field Summary
 
Fields inherited from class org.eclipse.mofscript.runtime.expression.ExpressionEvaluator
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter
 
Constructor Summary
ComparisonExpressionEvaluator(Expression expression, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
          Constructor
 
Method Summary
protected  java.lang.Object evaluate(java.lang.Object inputObject)
          Evaluates the comparison expression
 
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

ComparisonExpressionEvaluator

public ComparisonExpressionEvaluator(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

evaluate

protected java.lang.Object evaluate(java.lang.Object inputObject)
                             throws MofScriptExecutionException
Evaluates the comparison expression

Specified by:
evaluate in class ExpressionEvaluator
Parameters:
inputObject -
Returns:
Boolean object
Throws:
MofScriptExecutionException