static final class StrMatcher.CharMatcher extends StrMatcher
StrMatcher.CharMatcher, StrMatcher.CharSetMatcher, StrMatcher.NoMatcher, StrMatcher.StringMatcher, StrMatcher.TrimMatcher
Modifier and Type | Field and Description |
---|---|
private char |
ch
The character to match.
|
Constructor and Description |
---|
CharMatcher(char ch)
Constructor that creates a matcher that matches a single character.
|
Modifier and Type | Method and Description |
---|---|
int |
isMatch(char[] buffer,
int pos,
int bufferStart,
int bufferEnd)
Returns whether or not the given character matches.
|
charMatcher, charSetMatcher, charSetMatcher, commaMatcher, doubleQuoteMatcher, isMatch, noneMatcher, quoteMatcher, singleQuoteMatcher, spaceMatcher, splitMatcher, stringMatcher, tabMatcher, trimMatcher
CharMatcher(char ch)
ch
- the character to matchpublic int isMatch(char[] buffer, int pos, int bufferStart, int bufferEnd)
isMatch
in class StrMatcher
buffer
- 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