|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.ant.FileIterator
public class FileIterator
FileIterator is an iterator over a
number of files from a collection of FileSet instances.
| Field Summary | |
|---|---|
private org.apache.tools.ant.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 org.apache.tools.ant.Project |
project
The Ant project |
| Constructor Summary | |
|---|---|
FileIterator(org.apache.tools.ant.Project project,
java.util.Iterator fileSetIterator)
|
|
FileIterator(org.apache.tools.ant.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 org.apache.tools.ant.Project project
private org.apache.tools.ant.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(org.apache.tools.ant.Project project,
java.util.Iterator fileSetIterator)
public FileIterator(org.apache.tools.ant.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 | |||||||||