java.lang.Object
All Implemented Interfaces:
java.lang.Cloneable, Condition

public class And
extends ConditionBase
implements Condition
<and> condition container.

Iterates over all conditions and returns false as soon as one evaluates to false.

Since:
Ant 1.4
  • Constructor Details

    • And

      public And()
  • Method Details

    • eval

      public boolean eval() throws BuildException
      Description copied from interface: Condition
      Is this condition true?
      Specified by:
      eval in interface Condition
      Returns:
      true if all the contained conditions evaluates to true
      Throws:
      BuildException - if an error occurs