com.gridsystems.nextgrid.api.pom.expr
Class OrExpression

java.lang.Object
  extended by nextgrid.api.pom.Expression
      extended by com.gridsystems.nextgrid.api.pom.expr.AbstractOperatorExpression
          extended by com.gridsystems.nextgrid.api.pom.expr.OrExpression
All Implemented Interfaces:
java.io.Serializable

public class OrExpression
extends AbstractOperatorExpression

Combines multiple expressions by linking them through OR operators.

It evaluates the contained expressions in shortcut mode (until the expression is false) and from left to right by default.

Author:
Rodrigo Ruiz
See Also:
Serialized Form

Constructor Summary
OrExpression(nextgrid.api.pom.Expression... expr)
          Creates a new instance.
 
Method Summary
 boolean boolEval(nextgrid.api.env.ProcessEnvironment env, java.lang.Object o)
          
 
Methods inherited from class com.gridsystems.nextgrid.api.pom.expr.AbstractOperatorExpression
getExpressions, isEvaluatedLeftToRight, isShortcutModeEnabled, setEvaluatedLeftToRight, setExpressions, setShortcutModeEnabled, validate
 
Methods inherited from class nextgrid.api.pom.Expression
getLang, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrExpression

public OrExpression(nextgrid.api.pom.Expression... expr)
             throws nextgrid.api.pom.ExpressionException
Creates a new instance.

Parameters:
expr - The list of expressions
Throws:
nextgrid.api.pom.ExpressionException - If an unexpected error occurs
Method Detail

boolEval

public boolean boolEval(nextgrid.api.env.ProcessEnvironment env,
                        java.lang.Object o)
                 throws nextgrid.api.pom.ExpressionException

Specified by:
boolEval in class nextgrid.api.pom.Expression
Throws:
nextgrid.api.pom.ExpressionException


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.