|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.antcontrib.cpptasks.parser.AbstractParserState
net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState
public final class WhitespaceOrLetterState
This parser state checks consumed characters against a specific character or whitespace.
| Constructor Summary | |
|---|---|
WhitespaceOrLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg)
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 WhitespaceOrLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg)
parser - parsermatchLetter - letter to matchnextStateArg - next state if a match on the letter| Method Detail |
|---|
public AbstractParserState consume(char ch)
consume in class AbstractParserStatech - next character @returns the configured nextState if ch is the
expected character or the configure noMatchState otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||