public class BasicParseError extends Object implements ParseError
ParseError
implementation for a one-char parse error with an optional error message.Constructor and Description |
---|
BasicParseError(InputBuffer inputBuffer,
int errorIndex,
String errorMessage) |
Modifier and Type | Method and Description |
---|---|
int |
getEndIndex()
Gets the end index of the parse error in the underlying input buffer.
|
String |
getErrorMessage()
An optional error message.
|
int |
getIndexDelta() |
InputBuffer |
getInputBuffer()
Gets the inputbuffer this error occurred in.
|
int |
getStartIndex()
Gets the start index of the parse error in the underlying input buffer.
|
void |
setEndIndex(int endIndex) |
void |
shiftIndexDeltaBy(int delta) |
public BasicParseError(InputBuffer inputBuffer, int errorIndex, String errorMessage)
public InputBuffer getInputBuffer()
ParseError
getInputBuffer
in interface ParseError
public int getStartIndex()
ParseError
getStartIndex
in interface ParseError
public int getEndIndex()
ParseError
getEndIndex
in interface ParseError
public void setEndIndex(int endIndex)
public String getErrorMessage()
ParseError
getErrorMessage
in interface ParseError
public int getIndexDelta()
public void shiftIndexDeltaBy(int delta)
Copyright © 2013. All Rights Reserved.