public final class V8ScriptOrigin
extends java.lang.Object
| Constructor and Description |
|---|
V8ScriptOrigin()
Instantiates a new V8 script origin with default values.
|
V8ScriptOrigin(java.lang.String resourceName)
Instantiates a new V8 script origin with the given resource name.
|
V8ScriptOrigin(java.lang.String resourceName,
int scriptId)
Instantiates a new V8 script origin with resource name and script ID.
|
V8ScriptOrigin(java.lang.String resourceName,
int resourceLineOffset,
int resourceColumnOffset)
Instantiates a new V8 script origin with resource name and offsets.
|
V8ScriptOrigin(java.lang.String resourceName,
int resourceLineOffset,
int resourceColumnOffset,
int scriptId,
boolean wasm,
boolean module)
Instantiates a new V8 script origin with all fields specified.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getResourceColumnOffset()
Gets the column offset within the resource.
|
int |
getResourceLineOffset()
Gets the line offset within the resource.
|
java.lang.String |
getResourceName()
Gets the resource name (e.g.
|
int |
getScriptId()
Gets the script ID assigned by V8.
|
boolean |
isModule()
Returns whether the script is an ES module.
|
boolean |
isWasm()
Returns whether the script is WebAssembly.
|
V8ScriptOrigin |
setModule(boolean module)
Sets whether the script is an ES module.
|
V8ScriptOrigin |
setResourceColumnOffset(int resourceColumnOffset)
Sets the column offset within the resource.
|
V8ScriptOrigin |
setResourceLineOffset(int resourceLineOffset)
Sets the line offset within the resource.
|
V8ScriptOrigin |
setResourceName(java.lang.String resourceName)
Sets the resource name (e.g.
|
V8ScriptOrigin |
setScriptId(int scriptId)
Sets the script ID assigned by V8.
|
V8ScriptOrigin |
setWasm(boolean wasm)
Sets whether the script is WebAssembly.
|
public V8ScriptOrigin(java.lang.String resourceName,
int resourceLineOffset,
int resourceColumnOffset,
int scriptId,
boolean wasm,
boolean module)
resourceName - the resource name (e.g. file path or URL)resourceLineOffset - the line offset within the resourceresourceColumnOffset - the column offset within the resourcescriptId - the script ID assigned by V8wasm - whether the script is WebAssemblymodule - whether the script is an ES modulepublic V8ScriptOrigin()
public V8ScriptOrigin(java.lang.String resourceName)
resourceName - the resource name (e.g. file path or URL)public V8ScriptOrigin(java.lang.String resourceName,
int resourceLineOffset,
int resourceColumnOffset)
resourceName - the resource name (e.g. file path or URL)resourceLineOffset - the line offset within the resourceresourceColumnOffset - the column offset within the resourcepublic V8ScriptOrigin(java.lang.String resourceName,
int scriptId)
resourceName - the resource name (e.g. file path or URL)scriptId - the script ID assigned by V8public int getResourceColumnOffset()
public int getResourceLineOffset()
public java.lang.String getResourceName()
public int getScriptId()
public boolean isModule()
public boolean isWasm()
public V8ScriptOrigin setModule(boolean module)
module - true if the script is a modulepublic V8ScriptOrigin setResourceColumnOffset(int resourceColumnOffset)
resourceColumnOffset - the resource column offsetpublic V8ScriptOrigin setResourceLineOffset(int resourceLineOffset)
resourceLineOffset - the resource line offsetpublic V8ScriptOrigin setResourceName(java.lang.String resourceName)
resourceName - the resource namepublic V8ScriptOrigin setScriptId(int scriptId)
scriptId - the script IDpublic V8ScriptOrigin setWasm(boolean wasm)
wasm - true if the script is WebAssembly