static class Finder.Primary extends Finder
Finder.path(File) returns an instance of this.
next() returns the given file and,
if this is a folder all files therein.Finder.AndFilter, Finder.Callable, Finder.ExecFilter, Finder.ExecJavaFilter, Finder.Filter, Finder.NameFilter, Finder.NegFilter, Finder.OrFilter, Finder.Primary, Finder.PrintFilter, Finder.Secondary| Modifier and Type | Field and Description |
|---|---|
private Stack<File> |
files
The list of files to be returned by
next()
unwrapping folders recursively. |
| Constructor and Description |
|---|
Primary(File file)
Pushes
file to files. |
Primary(File[] path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Has a next file iff
files is not empty. |
File |
next()
If the topmost entry of
files is no folder,
this is returned as is. |
add, and, exec, execFilter, execJava, execJavaFilter, main, name, nameFilter, not, or, path, printpublic boolean hasNext()
files is not empty.hasNext in class FinderFinder.next()Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.