public class ParseStateImpl extends java.lang.Object implements ParseState
| Constructor and Description |
|---|
ParseStateImpl(ParseStateImpl state,
ParseException furthestException) |
ParseStateImpl(java.lang.String literal) |
| 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) |
public ParseStateImpl(java.lang.String literal)
public ParseStateImpl(ParseStateImpl state, ParseException furthestException)
public java.lang.String literal()
literal in interface ParseStatepublic int fromIndex()
fromIndex in interface ParseStatepublic ParseState fromIndex(int fromIndex)
fromIndex in interface ParseStatepublic boolean toEnd()
toEnd in interface ParseStatepublic ParseState toEnd(boolean toEnd)
toEnd in interface ParseStatepublic <T> ParseResult<T> parseTo(int toIndex, java.util.function.Function<java.lang.String,T> transform)
parseTo in interface ParseStatepublic ParseException getException()
getException in interface ParseStatepublic ParseState addException(ParseException exception)
addException in interface ParseStatepublic ParseState addException(java.lang.String message, int indexReached)
addException in interface ParseStatepublic ParseState addException(java.lang.String message, int indexReached, java.lang.Exception cause)
addException in interface ParseStatepublic ParseState addException(ParseState state)
addException in interface ParseStatepublic ParseState push(Parser<?> parser)
push in interface ParseStatepublic ParseState pop(Parser<?> expected)
pop in interface ParseState