AbstractMatcher
, LeadingAsteriskMatcher
, NameMatcher
, PathMatcher
, TrailingAsteriskMatcher
, WildCardMatcher
, WildMatcher
public interface IMatcher
Modifier and Type | Field | Description |
---|---|---|
static IMatcher |
NO_MATCH |
Matcher that does not match any pattern.
|
Modifier and Type | Method | 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
|
static final IMatcher NO_MATCH
boolean matches(String path, boolean assumeDirectory)
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)boolean matches(String segment, int startIncl, int endExcl, boolean assumeDirectory)
segment
- 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 © 2018. All rights reserved.