net.sf.antcontrib.cpptasks.parser
public final class WhitespaceOrCaseInsensitiveLetterState extends AbstractParserState
Constructor Summary | |
---|---|
WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg)
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
Parameters: ch next character
Returns: the configured nextState if ch is the expected character or the configure noMatchState otherwise.