ncsa.tools.ogrescript.types.evaluatable.conditions
Class And

java.lang.Object
  extended byncsa.tools.ogrescript.OgreScriptElement
      extended byncsa.tools.ogrescript.types.evaluatable.Condition
          extended byncsa.tools.ogrescript.types.evaluatable.conditions.Statement
              extended byncsa.tools.ogrescript.types.evaluatable.conditions.And
All Implemented Interfaces:
IConditional, UserFacing

public class And
extends Statement

Has usual and-style semantics where elements following the first encountered 'false' are not evaluated. Elements are evaluated from left to right.

Author:
Albert L. Rossi

Field Summary
static java.lang.String TAG_SELF
           
 
Fields inherited from class ncsa.tools.ogrescript.OgreScriptElement
TAG_EXT_PT
 
Constructor Summary
And()
           
 
Method Summary
 boolean evaluate()
           
 
Methods inherited from class ncsa.tools.ogrescript.types.evaluatable.conditions.Statement
addAnd, addBooleanExpression, addChecksum, addContains, addEndsWith, addEquals, addEqualsIgnoreCase, addFalse, addGreaterThan, addGreateThanOrEqual, addHasField, addHasMethod, addIsA, addIsDirectory, addIsFile, addIsNull, addIsSubstringOf, addLessThan, addLessThanOrEqual, addMatches, addNot, addOr, addStartsWith, addTrue, addXOr
 
Methods inherited from class ncsa.tools.ogrescript.types.evaluatable.Condition
isCondition
 
Methods inherited from class ncsa.tools.ogrescript.OgreScriptElement
asElement, initializeFromElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SELF

public static final java.lang.String TAG_SELF
See Also:
Constant Field Values
Constructor Detail

And

public And()
Method Detail

evaluate

public boolean evaluate()
                 throws EvaluationException
Specified by:
evaluate in interface IConditional
Overrides:
evaluate in class Statement
Returns:
true if all children evaluate to true; else false.
Throws:
EvaluationException