public class NameMatcher extends AbstractMatcher
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String path,
boolean assumeDirectory)
Matches entire given string
|
boolean |
matches(String segment,
int startIncl,
int endExcl,
boolean assumeDirectory)
Matches only part of given string
|
equals, hashCode, toStringpublic boolean matches(String path, boolean assumeDirectory)
IMatcherpath - 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)public boolean matches(String segment, int startIncl, int endExcl, boolean assumeDirectory)
IMatchersegment - string which is not null, but might be emptystartIncl - start index, inclusiveendExcl - end index, exclusiveassumeDirectory - true to assume this path as directory (even if it doesn't end
with a slash)Copyright © 2017 Eclipse JGit Project. All rights reserved.