public final class LetterState extends AbstractParserState
| Constructor | Description |
|---|---|
LetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg,
AbstractParserState noMatchStateArg) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
AbstractParserState |
consume(char ch) |
Consumes a character and returns the next state for the parser.
|
getParserpublic LetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg, AbstractParserState noMatchStateArg)
parser - parsermatchLetter - letter to matchnextStateArg - next state if a match on the letternoMatchStateArg - state if no match on letterpublic AbstractParserState consume(char ch)
consume in class AbstractParserStatech - next characterCopyright ? 2001-2018 Ant-Contrib project. All Rights Reserved.