org.apache.tools.ant.types.resources
public class Resources extends DataType implements ResourceCollection
Since: Ant 1.7
Field Summary | |
---|---|
static Iterator | EMPTY_ITERATOR static empty Iterator |
static ResourceCollection | NONE static empty ResourceCollection |
Constructor Summary | |
---|---|
Resources()
Create a new Resources. | |
Resources(Project project)
Create a new Resources. |
Method Summary | |
---|---|
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. |
protected void | invalidateExistingIterators()
Allow subclasses to notify existing Iterators they have experienced concurrent modification. |
boolean | isFilesystemOnly()
Fulfill the ResourceCollection contract. |
Iterator | iterator()
Fulfill the ResourceCollection contract. |
void | setCache(boolean b)
Set whether to cache collections. |
int | size()
Fulfill the ResourceCollection contract. |
String | toString()
Format this Resources as a String. |
Since: Ant 1.8
Parameters: c the ResourceCollection to add.
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Returns: true if all Resources represent files.
Returns: an Iterator of Resources.
Parameters: b boolean cache flag.
Since: Ant 1.8.0
Returns: number of elements as int.
Resources
as a String.Returns: a descriptive String
.