public class JsonLocation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static JsonLocation |
NA
Shared immutable "N/A location" that can be returned to indicate
that no location information is available
|
| Constructor and Description |
|---|
JsonLocation(java.lang.Object srcRef,
long totalChars,
int lineNr,
int colNr) |
JsonLocation(java.lang.Object sourceRef,
long totalBytes,
long totalChars,
int lineNr,
int columnNr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
long |
getByteOffset() |
long |
getCharOffset() |
int |
getColumnNr() |
int |
getLineNr() |
java.lang.Object |
getSourceRef()
Reference to the original resource being read, if one available.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final JsonLocation NA
public JsonLocation(java.lang.Object srcRef,
long totalChars,
int lineNr,
int colNr)
public JsonLocation(java.lang.Object sourceRef,
long totalBytes,
long totalChars,
int lineNr,
int columnNr)
public java.lang.Object getSourceRef()
File instance, this method would return
that File. Will return null if no such reference is available,
for example when InputStream was used to
construct the parser instance.public int getLineNr()
public int getColumnNr()
public long getCharOffset()
public long getByteOffset()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object