public class TransformedStringMatcher extends StringMatcher
| Constructor and Description |
|---|
TransformedStringMatcher(StringFunction stringFunction,
StringMatcher stringMatcher)
Creates a new TransformedStringMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.lang.String string)
Checks whether the given string matches.
|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
prefixpublic TransformedStringMatcher(StringFunction stringFunction, StringMatcher stringMatcher)
stringFunction - the function to transform strings.stringMatcher - the string matcher to test the transformed
strings.public boolean matches(java.lang.String string)
StringMatchermatches in class StringMatcherstring - the string to match.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).