Package de.monticore.io.paths
Class GlobExpressionEvaluator
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
- de.monticore.io.paths.GlobExpressionEvaluator
-
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>
public class GlobExpressionEvaluator extends java.nio.file.SimpleFileVisitor<java.nio.file.Path>This class evaluates a globbing expression on the current file system.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.FileSystemfileSystemprotected booleanisLocatedInJarprotected java.util.regex.Patternpatternprotected java.util.Set<java.net.URI>result
-
Constructor Summary
Constructors Constructor Description GlobExpressionEvaluator(java.lang.String pathRegex, java.nio.file.FileSystem fs, boolean isLocatedInJar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.net.URI>evaluate(java.io.File start)protected java.util.Set<java.net.URI>getResult()java.nio.file.FileVisitResultvisitFile(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attribs)
-
-
-
Method Detail
-
visitFile
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attribs)- Specified by:
visitFilein interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Overrides:
visitFilein classjava.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
getResult
protected java.util.Set<java.net.URI> getResult()
-
evaluate
public java.util.Set<java.net.URI> evaluate(java.io.File start)
-
-