net.sf.antcontrib.cpptasks.parser
Class WhitespaceOrCaseInsensitiveLetterState
public final class WhitespaceOrCaseInsensitiveLetterState
This parser state checks consumed characters against a specific character
(case insensitive) or whitespace.
WhitespaceOrCaseInsensitiveLetterState
public WhitespaceOrCaseInsensitiveLetterState(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
- the configured nextState if ch is the expected character or the
configure noMatchState otherwise.
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.