class JsonLocationImpl extends java.lang.Object implements JsonLocation
| Modifier and Type | Field and Description |
|---|---|
private long |
columnNo |
private long |
lineNo |
private long |
offset |
(package private) static JsonLocation |
UNKNOWN |
| Constructor and Description |
|---|
JsonLocationImpl(long lineNo,
long columnNo,
long streamOffset) |
| Modifier and Type | Method and Description |
|---|---|
long |
getColumnNumber()
Return the column number for the current JSON event in the input source.
|
long |
getLineNumber()
Return the line number for the current JSON event in the input source.
|
long |
getStreamOffset()
Return the stream offset into the input source this location
is pointing to.
|
java.lang.String |
toString() |
static final JsonLocation UNKNOWN
private final long columnNo
private final long lineNo
private final long offset
public long getLineNumber()
JsonLocationgetLineNumber in interface JsonLocationpublic long getColumnNumber()
JsonLocationgetColumnNumber in interface JsonLocationpublic long getStreamOffset()
JsonLocationgetStreamOffset in interface JsonLocationpublic java.lang.String toString()
toString in class java.lang.Object