Methods Summary |
---|
public synchronized void | add(org.apache.tools.ant.types.ResourceCollection c)Add the ResourceCollection.
if (isReference()) {
throw noChildrenAllowed();
}
if (c == null) {
return;
}
w.add(c);
|
public synchronized void | add(org.apache.tools.ant.types.resources.selectors.ResourceSelector s)Add a ResourceSelector.
if (s == null) {
return;
}
super.add(s);
FailFast.invalidate(this);
|
public synchronized boolean | isCache()Learn whether to cache collections. Default is true .
return w.isCache();
|
public synchronized boolean | isFilesystemOnly()Fulfill the ResourceCollection contract.
if (isReference()) {
return ((Restrict) getCheckedRef()).isFilesystemOnly();
}
dieOnCircularReference();
return w.isFilesystemOnly();
|
public final synchronized java.util.Iterator | iterator()Fulfill the ResourceCollection contract.
if (isReference()) {
return ((Restrict) getCheckedRef()).iterator();
}
dieOnCircularReference();
return w.iterator();
|
public synchronized void | setCache(boolean b)Set whether to cache collections.
w.setCache(b);
|
public synchronized int | size()Fulfill the ResourceCollection contract.
if (isReference()) {
return ((Restrict) getCheckedRef()).size();
}
dieOnCircularReference();
return w.size();
|
public synchronized java.lang.String | toString()Format this Restrict collection as a String.
if (isReference()) {
return getCheckedRef().toString();
}
dieOnCircularReference();
return w.toString();
|