| Constructor and Description |
|---|
CharacterRule(IToken token,
char[] values)
Creates a new operator rule.
|
| Modifier and Type | Method and Description |
|---|---|
IToken |
evaluate(ICharacterScanner scanner)
Evaluates the rule by examining the characters available from the provided character scanner.
|
boolean |
isOperator(char character)
Is this character an operator character?
|
public CharacterRule(IToken token, char[] values)
token - Token to use for this rulepublic boolean isOperator(char character)
character - Character to determine whether it is an operator charactertrue iff the character is an operator, false otherwise.public IToken evaluate(ICharacterScanner scanner)
IRuletrue when calling
isUndefined, if the text that the rule investigated does not match the rule's
requirements