|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.antcontrib.cpptasks.parser.AbstractParserState net.sf.antcontrib.cpptasks.parser.LetterState
public final class LetterState
This parser state checks consumed characters against a specific character.
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. |
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState |
---|
getParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg, AbstractParserState noMatchStateArg)
parser
- parsermatchLetter
- letter to matchnextStateArg
- next state if a match on the letternoMatchStateArg
- state if no match on letterMethod Detail |
---|
public AbstractParserState consume(char ch)
consume
in class AbstractParserState
ch
- next character
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |