/**
* Return a DirSet that has the same basedir and same patternsets
* as this one.
* @return the cloned dirset.
*/
/**
* Return a FileSet that has the same basedir and same patternsets
* as this one.
* @return the cloned fileset
*/
public Object clone() {
if (isReference()) {
return (( [[#variable111daa20]]) getRef(getProject())).clone();
}
else {
return super.clone();
}
}
/**
* Fulfill the ResourceCollection contract.
* @return an Iterator of Resources.
* @since Ant 1.7
*/
public Iterator iterator() {
if (isReference()) {
return (( [[#variable111daa20]]) getRef(getProject())).iterator();
}
return new FileResourceIterator(getDir(getProject()), getDirectoryScanner(getProject()). [[#variable111da9c0]]());
}
/**
* Fulfill the ResourceCollection contract.
* @return number of elements as int.
* @since Ant 1.7
*/
public int size() {
if (isReference()) {
return (( [[#variable111daa20]]) getRef(getProject())).size();
}
return getDirectoryScanner(getProject()). [[#variable131c2500]]();
}
/**
* Always returns true.
* @return true indicating that all elements will be FileResources.
* @since Ant 1.7
*/
public boolean isFilesystemOnly() {
return true;
}
|