| Modifier and Type | Field and Description |
|---|---|
| public static final IMatcher | NO_MATCH
Matcher that does not match any pattern. |
| Modifier and Type | Method and Description |
|---|---|
| public static IMatcher | Returns: a matcher for the given patternto match pattern, boolean whether to match only directories dirOnly)Creates a path matcher for the given pattern. |
| public boolean | Returns: true if this matcher pattern matches given stringstring which is not null, but might be empty path, boolean true to assume this path as directory (even if it doesn't end
with a slash) assumeDirectory, boolean true if the match is for the full path: prefix-only
matches are not allowedMatches entire given string |
| public boolean |
| NO_MATCH | back to summary |
|---|---|
| public static final IMatcher NO_MATCH Matcher that does not match any pattern. | |
| createPathMatcher | back to summary |
|---|---|
| public static IMatcher createPathMatcher(String pattern, boolean dirOnly) throws InvalidPatternException Creates a path matcher for the given pattern. A pattern may contain the wildcards "?", "*", and "**". The directory separator is '/'.
| |
| matches | back to summary |
|---|---|
| public boolean matches(String path, boolean assumeDirectory, boolean pathMatch) Matches entire given string
| |
| matches | back to summary |
|---|---|
| public boolean matches(String segment, int startIncl, int endExcl) Matches only part of given string
| |