public class WildCardMatcher extends NameMatcher
Pattern
's.
This class is immutable and thread safe.
Modifier and Type | Field and Description |
---|---|
(package private) java.util.regex.Pattern |
p |
beginning, slash, subPattern
dirOnly, pattern
Constructor and Description |
---|
WildCardMatcher(java.lang.String pattern,
java.lang.Character pathSeparator,
boolean dirOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String segment,
int startIncl,
int endExcl)
Matches only part of given string
|
matches
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createPathMatcher
WildCardMatcher(java.lang.String pattern, java.lang.Character pathSeparator, boolean dirOnly) throws InvalidPatternException
InvalidPatternException
public boolean matches(java.lang.String segment, int startIncl, int endExcl)
matches
in interface IMatcher
matches
in class NameMatcher
segment
- string which is not null, but might be emptystartIncl
- start index, inclusiveendExcl
- end index, exclusive