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(com.oracle.truffle.tools.utils.json.JSONObject location)
Create a location from the JSON description.
|
int |
getColumn() |
int |
getLine() |
int |
getScriptId() |
com.oracle.truffle.tools.utils.json.JSONObject |
toJSON() |
public Location(int scriptId,
int line,
int column)
public static Location create(com.oracle.truffle.tools.utils.json.JSONObject location)
nullpublic int getScriptId()
public int getLine()
public int getColumn()
public com.oracle.truffle.tools.utils.json.JSONObject toJSON()