public interface ParseState
Modifier and Type | Method and Description |
---|---|
ParseState |
addException(ParseException exception) |
ParseState |
addException(ParseState state) |
ParseState |
addException(java.lang.String message,
int indexReached) |
ParseState |
addException(java.lang.String message,
int indexReached,
java.lang.Exception cause) |
int |
fromIndex() |
ParseState |
fromIndex(int fromIndex) |
ParseException |
getException() |
java.lang.String |
literal() |
<T> ParseResult<T> |
parseTo(int toIndex,
java.util.function.Function<java.lang.String,T> transform) |
ParseState |
pop(Parser<?> expected) |
ParseState |
push(Parser<?> parser) |
boolean |
toEnd() |
ParseState |
toEnd(boolean toEnd) |
java.lang.String literal()
int fromIndex()
ParseState fromIndex(int fromIndex)
boolean toEnd()
ParseState toEnd(boolean toEnd)
<T> ParseResult<T> parseTo(int toIndex, java.util.function.Function<java.lang.String,T> transform)
ParseException getException()
ParseState addException(ParseException exception)
ParseState addException(java.lang.String message, int indexReached)
ParseState addException(java.lang.String message, int indexReached, java.lang.Exception cause)
ParseState addException(ParseState state)
ParseState push(Parser<?> parser)
ParseState pop(Parser<?> expected)