| Modifier and Type | Method and Description |
|---|---|
| public default StringMatcher | Returns: a matcher that matches this matcher followed by the given matcher.the next matcher. stringMatcher)Returns a matcher that matches this matcher followed by the given matcher. |
| public default int | Returns: The number of matching characters, zero for no match.the text content to match against, do not change. buffer, final int the starting position for the match, valid for buffer. pos)Returns the number of matching characters, zero for no match. |
| public int | Returns: The number of matching characters, zero if there is no match.the source text to search, do not change. buffer, int the starting position for the match, valid in start, int buffer.the first active index in the buffer, valid in bufferStart, int buffer.the end index (exclusive) of the active buffer, valid in bufferEnd)buffer.Returns the number of matching characters, |
| public default int | Returns: The number of matching characters, zero for no match.the text content to match against, do not change. buffer, final int the starting position for the match, valid for buffer. pos)Returns the number of matching characters, zero for no match. |
| public default int | Returns: The number of matching characters, zero if there is no match.the source text to search, do not change. buffer, final int the starting position for the match, valid in start, final int buffer.the first active index in the buffer, valid in bufferStart, final int buffer.the end index (exclusive) of the active buffer, valid in bufferEnd)buffer.Returns the number of matching characters, |
| public default int |
| andThen | back to summary |
|---|---|
| public default StringMatcher andThen(final StringMatcher stringMatcher) Returns a matcher that matches this matcher followed by the given matcher.
| |
| isMatch | back to summary |
|---|---|
| public default int isMatch(final char[] buffer, final int pos) Returns the number of matching characters, zero for no match.
This method is called to check for a match. The parameter
The matching code may check one character or many. It may check characters preceding It must return zero for no match, or a positive number if a match was found. The number indicates the number of characters that matched.
| |
| isMatch | back to summary |
|---|---|
| public int isMatch(char[] buffer, int start, int bufferStart, int bufferEnd) Returns the number of matching characters,
This method is called to check for a match against a source
The character array may be larger than the active area to be matched. Only values in the buffer between the
specified indices may be accessed, in other words:
The matching code may check one character or many. It may check characters preceding It must return zero for no match, or a positive number if a match was found. The number indicates the number of characters that matched.
| |
| isMatch | back to summary |
|---|---|
| public default int isMatch(final CharSequence buffer, final int pos) Returns the number of matching characters, zero for no match.
This method is called to check for a match. The parameter
The matching code may check one character or many. It may check characters preceding It must return zero for no match, or a positive number if a match was found. The number indicates the number of characters that matched.
| |
| isMatch | back to summary |
|---|---|
| public default int isMatch(final CharSequence buffer, final int start, final int bufferStart, final int bufferEnd) Returns the number of matching characters,
This method is called to check for a match against a source
The character array may be larger than the active area to be matched. Only values in the buffer between the
specified indices may be accessed, in other words:
The matching code may check one character or many. It may check characters preceding It must return zero for no match, or a positive number if a match was found. The number indicates the number of characters that matched.
| |
| size | back to summary |
|---|---|
| public default int size() Returns the size of the matching string. Defaults to 0.
| |