org.apache.tools.ant.taskdefs.condition
public class: And [javadoc |
source]
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.ConditionBase
org.apache.tools.ant.taskdefs.condition.And
All Implemented Interfaces:
Condition, Cloneable
<and> condition container.
Iterates over all conditions and returns false as soon as one
evaluates to false.
| Method from org.apache.tools.ant.taskdefs.condition.And Summary: |
|---|
|
eval |
| Methods from org.apache.tools.ant.taskdefs.condition.ConditionBase: |
|---|
|
add, addAnd, addAvailable, addChecksum, addContains, addEquals, addFilesMatch, addHttp, addIsFalse, addIsFileSelected, addIsReference, addIsSet, addIsTrue, addNot, addOr, addOs, addSocket, addUptodate, countConditions, getConditions, getTaskName, setTaskName |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.tools.ant.taskdefs.condition.And Detail: |
public boolean eval() throws BuildException {
Enumeration e = getConditions();
while (e.hasMoreElements()) {
Condition c = (Condition) e.nextElement();
if (!c.eval()) {
return false;
}
}
return true;
}
|