public final class CaseInsensitiveLetterState extends AbstractParserState
Constructor | Description |
---|---|
CaseInsensitiveLetterState(AbstractParser parser,
char matchLetter,
AbstractParserState nextStateArg,
AbstractParserState noMatchStateArg) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
AbstractParserState |
consume(char ch) |
Consumes a character and returns the next state for the parser.
|
getParser
public CaseInsensitiveLetterState(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 letterpublic AbstractParserState consume(char ch)
consume
in class AbstractParserState
ch
- next characterCopyright ? 2001-2019 Ant-Contrib project. All Rights Reserved.