org.sintef.mofscript.runtime.expression
Class LogicalExpressionEvaluator

java.lang.Object
  extended by org.sintef.mofscript.runtime.expression.ExpressionEvaluator
      extended by org.sintef.mofscript.runtime.expression.LogicalExpressionEvaluator

public class LogicalExpressionEvaluator
extends ExpressionEvaluator

Handles logical expressions

Author:
jol

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

LogicalExpressionEvaluator

public LogicalExpressionEvaluator(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 logical expression

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