public class WildcardPath extends Object
The '*' in "foo*bar" is treated the same way that java regex treats "(.*)", and all WildcardPath's are considered to match child paths. For example, "foo.bar" will match "foo.bar.baz". It will not match "foo.barbaz" however. To match "foo.barbaz" the pattern "foo.bar*" could be used, which would also match "foo.barbaz.x"
Only '*' is considered a special character. All other characters are not treated as special characters, including '{', '}', '.', and '/' with one exception -- the delimiter character is used for matching against child paths as explained above.
It is assumed that {} globs have already been expanded before constructing this object.
| Constructor and Description |
|---|
WildcardPath(String parentGlobPath,
String wildcardPath,
char delim) |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildRegex(String wildcardPath,
char delim) |
boolean |
equals(Object o) |
String |
getOriginalPattern() |
String |
getParentGlobPath() |
int |
hashCode() |
boolean |
matches(String path) |
String |
toString() |
Copyright © 2023 The Apache Software Foundation. All rights reserved.