public final class WhitespaceOrCaseInsensitiveLetterState extends AbstractParserState
Modifier and Type | Field and Description |
---|---|
private char |
lowerLetter
Character to match (lower case).
|
private AbstractParserState |
nextState
Next state if the character is found.
|
private char |
upperLetter
Character to match (upper case).
|
Constructor and Description |
---|
WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractParserState |
consume(char ch)
Consumes a character and returns the next state for the parser.
|
getParser
private final AbstractParserState nextState
private final char lowerLetter
private final char upperLetter
public WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser, char matchLetter, AbstractParserState nextStateArg)
parser
- parsermatchLetter
- letter to matchnextStateArg
- next state if a match on the letterpublic AbstractParserState consume(char ch)
consume
in class AbstractParserState
ch
- next character