public interface IMatcher
| Modifier and Type | Field and Description |
|---|---|
static IMatcher |
NO_MATCH
Matcher that does not match any pattern.
|
| Modifier and Type | Method and Description |
|---|---|
static IMatcher |
createPathMatcher(String pattern,
boolean dirOnly)
Creates a path matcher for the given pattern.
|
boolean |
matches(String path,
boolean assumeDirectory,
boolean pathMatch)
Matches entire given string
|
boolean |
matches(String segment,
int startIncl,
int endExcl)
Matches only part of given string
|
static final IMatcher NO_MATCH
@NonNull static IMatcher createPathMatcher(@NonNull String pattern, boolean dirOnly) throws InvalidPatternException
pattern - to matchdirOnly - whether to match only directoriesInvalidPatternException - if the pattern is invalidboolean matches(String path, boolean assumeDirectory, boolean pathMatch)
path - string which is not null, but might be emptyassumeDirectory - true to assume this path as directory (even if it doesn't end
with a slash)pathMatch - true if the match is for the full path: prefix-only
matches are not allowedboolean matches(String segment, int startIncl, int endExcl)
segment - string which is not null, but might be emptystartIncl - start index, inclusiveendExcl - end index, exclusiveCopyright © 2021 Eclipse JGit Project. All rights reserved.