public class SettableMatcher extends StringMatcher
StringMatcher delegates to a another StringMatcher that can be set
after this StringMatcher has been constructed.| Constructor and Description |
|---|
SettableMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
void |
setMatcher(StringMatcher matcher) |
matchespublic void setMatcher(StringMatcher matcher)
protected boolean matches(java.lang.String string,
int beginOffset,
int endOffset)
StringMatchermatches in class StringMatcherstring - the string to match.beginOffset - the start offset of the substring (inclusive).endOffset - the end offset of the substring (exclusive).