public class Matches
extends java.lang.Object
Constructor and Description |
---|
Matches(char matchChar,
Matches nextNode) |
Modifier and Type | Method and Description |
---|---|
static boolean |
doesMatch(java.lang.String pattern,
java.lang.String operand)
Main method determines whether the operand matches the pattern given.
|
protected boolean |
matches(char[] operand,
int cursorPos)
Evaluates the operand at the position given for this node.
|
java.lang.String |
toString() |
public Matches(char matchChar, Matches nextNode)
public static final boolean doesMatch(java.lang.String pattern, java.lang.String operand)
pattern
- The pattern may have wildcards "%" and "_".operand
- The operand is compared to the pattern.protected boolean matches(char[] operand, int cursorPos)
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)
public java.lang.String toString()
toString
in class java.lang.Object