net.sf.antcontrib.cpptasks.parser
Class WhitespaceOrLetterState
public final class WhitespaceOrLetterState
This parser state checks consumed characters against a specific character or
whitespace.
WhitespaceOrLetterState
public WhitespaceOrLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg)
Constructor.
parser
- parsermatchLetter
- letter to matchnextStateArg
- next state if a match on the letter
consume
public AbstractParserState consume(char ch)
Consumes a character and returns the next state for the parser.
- consume in interface AbstractParserState
ch
- next character @returns the configured nextState if ch is the
expected character or the configure noMatchState otherwise.
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.