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

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.AndExpression
All Implemented Interfaces:
java.io.Serializable

public class AndExpression
extends AbstractOperatorExpression

Combines multiple expressions by linking them through AND 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
AndExpression(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

AndExpression

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

Parameters:
expr - Expression list
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.