Methods Summary |
---|
public java.lang.Object | clone()Return a DirSet that has the same basedir and same patternsets
as this one.
if (isReference()) {
return ((DirSet) getRef(getProject())).clone();
} else {
return super.clone();
}
|
public boolean | isFilesystemOnly()Always returns true.
return true;
|
public java.util.Iterator | iterator()Fulfill the ResourceCollection contract.
if (isReference()) {
return ((DirSet) getRef(getProject())).iterator();
}
return new FileResourceIterator(getDir(getProject()),
getDirectoryScanner(getProject()).getIncludedDirectories());
|
public int | size()Fulfill the ResourceCollection contract.
if (isReference()) {
return ((DirSet) getRef(getProject())).size();
}
return getDirectoryScanner(getProject()).getIncludedDirsCount();
|
public java.lang.String | toString()Returns included directories as a list of semicolon-separated paths.
DirectoryScanner ds = getDirectoryScanner(getProject());
String[] dirs = ds.getIncludedDirectories();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < dirs.length; i++) {
if (i > 0) {
sb.append(';");
}
sb.append(dirs[i]);
}
return sb.toString();
|