public final class Location extends Object
| Constructor and Description |
|---|
Location(int scriptId,
int line,
int column)
A location with 1-based line numbers and 1-based columns.
|
| Modifier and Type | Method and Description |
|---|---|
static Location |
create(org.graalvm.shadowed.org.json.JSONObject location)
Create a location from the JSON description.
|
int |
getColumn() |
int |
getLine() |
int |
getScriptId() |
org.graalvm.shadowed.org.json.JSONObject |
toJSON() |
public Location(int scriptId,
int line,
int column)
public static Location create(org.graalvm.shadowed.org.json.JSONObject location)
nullpublic int getScriptId()
public int getLine()
public int getColumn()
public org.graalvm.shadowed.org.json.JSONObject toJSON()