net.sf.antcontrib.cpptasks.parser
public final class LetterState extends AbstractParserState
Constructor Summary | |
---|---|
LetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg, AbstractParserState noMatchStateArg)
Constructor.
|
Method Summary | |
---|---|
AbstractParserState | consume(char ch)
Consumes a character and returns the next state for the parser.
|
Parameters: parser parser matchLetter letter to match nextStateArg next state if a match on the letter noMatchStateArg state if no match on letter
Parameters: ch next character
Returns: the configured nextState if ch is the expected character or the configure noMatchState otherwise.