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.
|
getParser
public 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 AbstractParserState
ch
- next character @returns the configured nextState if ch is the
expected character or the configure noMatchState otherwise.Copyright ? 2001-2017 Ant-Contrib project. All Rights Reserved.