Package eu.simuline.util
Class PathFinder.Primary
- java.lang.Object
-
- eu.simuline.util.PathFinder
-
- eu.simuline.util.PathFinder.Primary
-
- Enclosing class:
- PathFinder
static class PathFinder.Primary extends PathFinder
The most basic kind of finder: MethodPathFinder.path(Path)returns an instance of this.next()returns the given file and, if this is a folder all files therein.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.simuline.util.PathFinder
PathFinder.AndFilter, PathFinder.Callable, PathFinder.ExecFilter, PathFinder.ExecJavaFilter, PathFinder.Filter, PathFinder.NameFilter, PathFinder.NegFilter, PathFinder.OrFilter, PathFinder.Primary, PathFinder.PrintFilter, PathFinder.Secondary
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Has a next file ifffilesis not empty.Pathnext()If the topmost entry offilesis no folder, this is returned as is.-
Methods inherited from class eu.simuline.util.PathFinder
add, and, exec, execFilter, execJava, execJavaFilter, main, name, nameFilter, not, or, path, print
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Has a next file ifffilesis not empty.- Specified by:
hasNextin classPathFinder- See Also:
PathFinder.next()
-
next
public Path next()
If the topmost entry offilesis no folder, this is returned as is. otherwise, in addition, this folder is unwrapped and the contents is pushed onto the stackfiles.- Specified by:
nextin classPathFinder
-
-