public class GlobExpr extends Object
| Constructor and Description |
|---|
GlobExpr(String glob)
Default constructor for the GlobExpr object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
The glob syntax expression.
|
boolean |
globMatches(Path path)
Tests the path against a string path with glob syntax.
|
Path |
globRemaining(Path path)
Obtains the path remaining of matches a path with glob syntax.
|
String |
toString() |
public GlobExpr(String glob)
glob - THe glob syntax expression for this object.public String getValue()
public boolean globMatches(Path path)
Glob syntax follows the following simple rules:
To match "*", "?", or the other special characters, you can escape them by using the backslash character, "\". For example: "\\" matches a single backslash, and "\?" matches the question mark.
path - path to testpublic Path globRemaining(Path path)
path - path to searchglobMatches(Path)Copyright © 2015–2017 Bridje Framework. All rights reserved.