FileDocCategorySizeDatePackage
And.javaAPI DocApache Ant 1.701713Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.types.resources.selectors

And

public class And extends ResourceSelectorContainer implements ResourceSelector
And ResourceSelector.
since
Ant 1.7

Fields Summary
Constructors Summary
public And()
Default constructor.

    
public And(ResourceSelector[] r)
Convenience constructor.

param
r the ResourceSelector[] to add.

        super(r);
    
Methods Summary
public booleanisSelected(org.apache.tools.ant.types.Resource r)
Return true if this Resource is selected.

param
r the Resource to check.
return
whether the Resource was selected.

        for (Iterator i = getSelectors(); i.hasNext();) {
            if (!((ResourceSelector) i.next()).isSelected(r)) {
                return false;
            }
        }
        return true;