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

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

public abstract class AbstractOperatorExpression
extends nextgrid.api.pom.Expression

Base class for conditional operator expressions (AND, OR, XOR, NAND, etc).

Author:
Rodrigo Ruiz
See Also:
Serialized Form

Constructor Summary
AbstractOperatorExpression(nextgrid.api.pom.Expression... expr)
          Creates a new instance.
 
Method Summary
 java.util.List<nextgrid.api.pom.Expression> getExpressions()
          Gets the list of expressions.
 boolean isEvaluatedLeftToRight()
          Gets the evaluation order.
 boolean isShortcutModeEnabled()
          Gets the current shortcut mode.
 void setEvaluatedLeftToRight(boolean l2r)
          Sets the evaluation order.
 void setExpressions(nextgrid.api.pom.Expression... expr)
          Sets the contained expression list.
 void setShortcutModeEnabled(boolean enabled)
          Sets the shortcut mode.
 void validate()
          
 
Methods inherited from class nextgrid.api.pom.Expression
boolEval, getLang, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOperatorExpression

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

isShortcutModeEnabled

public final boolean isShortcutModeEnabled()
Gets the current shortcut mode.

Returns:
The current shortcut mode

setShortcutModeEnabled

public final void setShortcutModeEnabled(boolean enabled)
Sets the shortcut mode.

Parameters:
enabled - The new shortcut mode

isEvaluatedLeftToRight

public final boolean isEvaluatedLeftToRight()
Gets the evaluation order.

Returns:
true if the expressions are evaluated left-to-right; false otherwise

setEvaluatedLeftToRight

public final void setEvaluatedLeftToRight(boolean l2r)
Sets the evaluation order.

Parameters:
l2r - true if the expressions must be evaluated left-to-right; false otherwise

setExpressions

public final void setExpressions(nextgrid.api.pom.Expression... expr)
Sets the contained expression list.

Parameters:
expr - The list of expressions

getExpressions

public final java.util.List<nextgrid.api.pom.Expression> getExpressions()
Gets the list of expressions.

Returns:
The list of expressions

validate

public void validate()
              throws nextgrid.api.pom.ExpressionException

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


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