static final class StrMatcher.StringMatcher extends StrMatcher
StrMatcher.CharMatcher, StrMatcher.CharSetMatcher, StrMatcher.NoMatcher, StrMatcher.StringMatcher, StrMatcher.TrimMatcher| Modifier and Type | Field and Description |
|---|---|
private char[] |
chars
The string to match, as a character array.
|
| Constructor and Description |
|---|
StringMatcher(java.lang.String str)
Constructor that creates a matcher from a String.
|
| Modifier and Type | Method and Description |
|---|---|
int |
isMatch(char[] buffer,
int pos,
int bufferStart,
int bufferEnd)
Returns whether or not the given text matches the stored string.
|
charMatcher, charSetMatcher, charSetMatcher, commaMatcher, doubleQuoteMatcher, isMatch, noneMatcher, quoteMatcher, singleQuoteMatcher, spaceMatcher, splitMatcher, stringMatcher, tabMatcher, trimMatcherStringMatcher(java.lang.String str)
str - the string to match, must not be nullpublic int isMatch(char[] buffer,
int pos,
int bufferStart,
int bufferEnd)
isMatch in class StrMatcherbuffer - the text content to match against, do not changepos - the starting position for the match, valid for bufferbufferStart - the first active index in the buffer, valid for bufferbufferEnd - the end index of the active buffer, valid for buffer