org.araneaframework.backend.list.memorybased.expression.logical
Class OrExpression

java.lang.Object
  extended byorg.araneaframework.backend.list.memorybased.expression.MultiExpression
      extended byorg.araneaframework.backend.list.memorybased.expression.logical.OrExpression
All Implemented Interfaces:
CompositeExpression, Expression, Serializable

public class OrExpression
extends MultiExpression

Composite OR Expression.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.araneaframework.backend.list.memorybased.expression.MultiExpression
children
 
Constructor Summary
OrExpression()
           
 
Method Summary
 Object evaluate(VariableResolver resolver)
          Returns Boolean.TRUE if at least one expressions evaluates to Boolean.TRUE, Boolean.FALSE otherwise.
 
Methods inherited from class org.araneaframework.backend.list.memorybased.expression.MultiExpression
add, getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrExpression

public OrExpression()
Method Detail

evaluate

public Object evaluate(VariableResolver resolver)
                throws ExpressionEvaluationException
Returns Boolean.TRUE if at least one expressions evaluates to Boolean.TRUE, Boolean.FALSE otherwise.

Parameters:
resolver - Resolver that is used to evalute Variables.
Returns:
whether any of the expression evaluated to true
Throws:
ExpressionEvaluationException - when the evaluating fails.