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