org.apache.tools.ant.types.resources
public class Restrict extends ResourceSelectorContainer implements ResourceCollection
Since: Ant 1.7
Method Summary | |
---|---|
void | add(ResourceCollection c)
Add the ResourceCollection. |
void | add(ResourceSelector s)
Add a ResourceSelector. |
boolean | isCache()
Learn whether to cache collections. |
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 Restrict collection as a String. |
Parameters: c the ResourceCollection to add.
Parameters: s the ResourceSelector to add.
true
.Returns: boolean cache flag.
Returns: whether this is a filesystem-only resource collection.
Returns: an Iterator of Resources.
Parameters: b boolean cache flag.
Returns: number of elements as int.
Returns: the String value of this collection.