public final class WhitespaceOrLetterState extends AbstractParserState
构造器和说明 |
---|
WhitespaceOrLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
AbstractParserState |
consume(char ch)
Consumes a character and returns the next state for the parser.
|
getParser
public WhitespaceOrLetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg)
parser
- parsermatchLetter
- letter to matchnextStateArg
- next state if a match on the letterpublic AbstractParserState consume(char ch)
consume
在类中 AbstractParserState
ch
- next character @returns the configured nextState if ch is the
expected character or the configure noMatchState otherwise.Copyright © 2005-2017 NAR Maven Plugin developers. All Rights Reserved.