Package org.parboiled.errors
Interface ParseError
-
- All Known Implementing Classes:
ActionError
,BasicParseError
,InvalidInputError
public interface ParseError
Common interface of all parboiled parse error implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEndIndex()
Gets the end index of the parse error in the underlying input buffer.String
getErrorMessage()
An optional error message.InputBuffer
getInputBuffer()
Gets the inputbuffer this error occurred in.int
getStartIndex()
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
String getErrorMessage()
An optional error message.- Returns:
- an optional error message.
-
-