| org.apache.tools.ant.types.DataType org.apache.tools.ant.types.resources.Resources
Resources | public class Resources extends DataType implements ResourceCollection(Code) | | Generic ResourceCollection: Either stores nested ResourceCollections,
making no attempt to remove duplicates, or references another ResourceCollection.
since: Ant 1.7 |
Method Summary | |
public synchronized void | add(ResourceCollection c) Add a ResourceCollection. | protected void | dieOnCircularReference(Stack stk, Project p) Overrides the version of DataType to recurse on all DataType
child elements that may have been added. | public boolean | isFilesystemOnly() Fulfill the ResourceCollection contract. | public synchronized Iterator | iterator() Fulfill the ResourceCollection contract. | public synchronized int | size() Fulfill the ResourceCollection contract. | public synchronized String | toString() Format this BaseResourceCollectionContainer as a String. |
EMPTY_ITERATOR | final public static Iterator EMPTY_ITERATOR(Code) | | static empty Iterator
|
add | public synchronized void add(ResourceCollection c)(Code) | | Add a ResourceCollection.
Parameters: c - the ResourceCollection to add. |
dieOnCircularReference | protected void dieOnCircularReference(Stack stk, Project p) throws BuildException(Code) | | Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
Parameters: stk - the stack of data types to use (recursively). Parameters: p - the project to use to dereference the references. throws: BuildException - on error. |
isFilesystemOnly | public boolean isFilesystemOnly()(Code) | | Fulfill the ResourceCollection contract.
true if all Resources represent files. |
iterator | public synchronized Iterator iterator()(Code) | | Fulfill the ResourceCollection contract.
an Iterator of Resources. |
size | public synchronized int size()(Code) | | Fulfill the ResourceCollection contract.
number of elements as int. |
toString | public synchronized String toString()(Code) | | Format this BaseResourceCollectionContainer as a String.
a descriptive String . |
|
|