public final class WhitespaceOrLetterState extends AbstractParserState
| Constructor | Description |
|---|---|
WhitespaceOrLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
AbstractParserState |
consume(char ch) |
Consumes a character and returns the next state for the parser.
|
getParserpublic WhitespaceOrLetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg)
parser - parsermatchLetter - letter to matchnextStateArg - next state if a match on the letterpublic AbstractParserState consume(char ch)
consume in class AbstractParserStatech - next character @returns the configured nextState if ch is the
expected character or the configure noMatchState otherwise.Copyright ? 2001-2018 Ant-Contrib project. All Rights Reserved.