|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.groovy.ant.FileIterator
FileIterator is an iterator over a
over a number of files from a colleciton of FileSet instances.
| Field Summary | |
private DirectoryScanner |
ds
The directory scanner |
private int |
fileIndex
The current index into the file name array |
private java.lang.String[] |
files
The file names in the current FileSet scan |
private java.util.Iterator |
fileSetIterator
The iterator over the FileSet objects |
private boolean |
iterateDirectories
Return only directories? |
private java.io.File |
nextFile
The next File object we'll iterate over |
private boolean |
nextObjectSet
Have we set a next object? |
private Project |
project
The Ant project |
| Constructor Summary | |
FileIterator(Project project,
java.util.Iterator fileSetIterator)
|
|
FileIterator(Project project,
java.util.Iterator fileSetIterator,
boolean iterateDirectories)
|
|
| Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
throws UnsupportedOperationException |
private boolean |
setNextObject()
Set nextObject to the next object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Iterator fileSetIterator
private Project project
private DirectoryScanner ds
private java.lang.String[] files
private int fileIndex
private java.io.File nextFile
private boolean nextObjectSet
private boolean iterateDirectories
| Constructor Detail |
public FileIterator(Project project,
java.util.Iterator fileSetIterator)
public FileIterator(Project project,
java.util.Iterator fileSetIterator,
boolean iterateDirectories)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorprivate boolean setNextObject()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||