public class MatchedStringMatcher extends StringMatcher
StringMatcher tests whether strings start with a specified variable
string and then match another optional given StringMatcher.VariableStringMatcher| Constructor and Description |
|---|
MatchedStringMatcher(VariableStringMatcher variableStringMatcher,
StringMatcher nextMatcher)
Creates a new MatchedStringMatcher
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
matchespublic MatchedStringMatcher(VariableStringMatcher variableStringMatcher, StringMatcher nextMatcher)
variableStringMatcher - the variable string matcher that can
provide the string to match.nextMatcher - an optional string matcher to match the
remainder of the string.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).