public class SingleMatch extends Matches
Constructor and Description |
---|
SingleMatch(char matchChar,
Matches nextNode) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(char[] operand,
int cursorPos)
Matches any character and continues to check from the next position.
|
java.lang.String |
toString() |
public SingleMatch(char matchChar, Matches nextNode)
protected boolean matches(char[] operand, int cursorPos)
matches
in class Matches
operand
- The operand String coverted to a character array.cursorPos
- From where to make the comparison to this node.AnyMatch.matches(char[], int)
,
SingleMatch.matches(char[], int)
,
MatchEnd.matches(char[], int)