Package org.parboiled.errors
Interface ParseError
-
- All Known Implementing Classes:
ActionError,BasicParseError,InvalidInputError
public interface ParseErrorCommon interface of all parboiled parse error implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetEndIndex()Gets the end index of the parse error in the underlying input buffer.java.lang.StringgetErrorMessage()An optional error message.InputBuffergetInputBuffer()Gets the inputbuffer this error occurred in.intgetStartIndex()Gets the start index of the parse error in the underlying input buffer.
-
-
-
Method Detail
-
getInputBuffer
InputBuffer getInputBuffer()
Gets the inputbuffer this error occurred in.- Returns:
- the inputbuffer
-
getStartIndex
int getStartIndex()
Gets the start index of the parse error in the underlying input buffer.- Returns:
- the input index of the first character covered by this error
-
getEndIndex
int getEndIndex()
Gets the end index of the parse error in the underlying input buffer.- Returns:
- the end index of this error, i.e. the index of the character immediately following the last character covered by this error
-
getErrorMessage
java.lang.String getErrorMessage()
An optional error message.- Returns:
- an optional error message.
-
-