Package Torello.Browser
Class Debugger.scriptParsed
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.BrowserEvent
-
- Torello.Browser.Debugger.scriptParsed
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Debugger
public static class Debugger.scriptParsed extends BrowserEvent implements java.io.Serializable
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Debugger.java
- Open New Browser-Tab: Torello/Browser/Debugger.java
File Size: 13,282 Bytes Line Count: 308 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Event Properties Modifier and Type Field Integer
codeOffset
If the scriptLanguage is WebAssembly, the code section offset in the module.Debugger.DebugSymbols
debugSymbols
If the scriptLanguage is WebASsembly, the source of debug symbols for the module.String
embedderName
The name the embedder supplied for this script.int
endColumn
Length of the last line of the script.int
endLine
Last line of the script.JsonObject
executionContextAuxData
Embedder-specific auxiliary data.int
executionContextId
Specifies script creation context.String
hash
Content hash of the script.Boolean
hasSourceURL
True, if this script has sourceURL.Boolean
isLiveEdit
True, if this script is generated as a result of the live edit operation.Boolean
isModule
True, if this script is ES6 module.Integer
length
This script length.String
scriptId
Identifier of the script parsed.String
scriptLanguage
The language of the script.String
sourceMapURL
URL of source map associated with script (if any).RunTime.StackTrace
stackTrace
JavaScript top stack frame of where the script parsed event was triggered if available.int
startColumn
Column offset of the script within the resource with given URL.int
startLine
Line offset of the script within the resource with given URL (for script tags).String
url
URL or name of the script parsed (if any).-
Fields inherited from class Torello.Browser.BrowserEvent
domain, name, numFields
-
-
Constructor Summary
Constructors Constructor Description scriptParsed(String scriptId, String url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, String hash, JsonObject executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, RunTime.StackTrace stackTrace, Integer codeOffset, String scriptLanguage, Debugger.DebugSymbols debugSymbols, String embedderName)
ConstructorscriptParsed(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
scriptId
public final java.lang.String scriptId
Identifier of the script parsed.
-
url
public final java.lang.String url
URL or name of the script parsed (if any).
-
startLine
public final int startLine
Line offset of the script within the resource with given URL (for script tags).
-
startColumn
public final int startColumn
Column offset of the script within the resource with given URL.
-
endLine
public final int endLine
Last line of the script.
-
endColumn
public final int endColumn
Length of the last line of the script.
-
executionContextId
public final int executionContextId
Specifies script creation context.
-
hash
public final java.lang.String hash
Content hash of the script.
-
executionContextAuxData
public final JsonObject executionContextAuxData
Embedder-specific auxiliary data.
OPTIONAL
-
isLiveEdit
public final java.lang.Boolean isLiveEdit
True, if this script is generated as a result of the live edit operation.
OPTIONAL
EXPERIMENTAL
-
sourceMapURL
public final java.lang.String sourceMapURL
URL of source map associated with script (if any).
OPTIONAL
-
hasSourceURL
public final java.lang.Boolean hasSourceURL
True, if this script has sourceURL.
OPTIONAL
-
isModule
public final java.lang.Boolean isModule
True, if this script is ES6 module.
OPTIONAL
-
length
public final java.lang.Integer length
This script length.
OPTIONAL
-
stackTrace
public final RunTime.StackTrace stackTrace
JavaScript top stack frame of where the script parsed event was triggered if available.
OPTIONAL
EXPERIMENTAL
-
codeOffset
public final java.lang.Integer codeOffset
If the scriptLanguage is WebAssembly, the code section offset in the module.
OPTIONAL
EXPERIMENTAL
-
scriptLanguage
public final java.lang.String scriptLanguage
The language of the script.
OPTIONAL
EXPERIMENTAL
-
debugSymbols
public final Debugger.DebugSymbols debugSymbols
If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
OPTIONAL
EXPERIMENTAL
-
embedderName
public final java.lang.String embedderName
The name the embedder supplied for this script.
OPTIONAL
EXPERIMENTAL
-
-
Constructor Detail
-
scriptParsed
public scriptParsed(java.lang.String scriptId, java.lang.String url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, java.lang.String hash, JsonObject executionContextAuxData, java.lang.Boolean isLiveEdit, java.lang.String sourceMapURL, java.lang.Boolean hasSourceURL, java.lang.Boolean isModule, java.lang.Integer length, RunTime.StackTrace stackTrace, java.lang.Integer codeOffset, java.lang.String scriptLanguage, Debugger.DebugSymbols debugSymbols, java.lang.String embedderName)
Constructor- Parameters:
scriptId
- Identifier of the script parsed.url
- URL or name of the script parsed (if any).startLine
- Line offset of the script within the resource with given URL (for script tags).startColumn
- Column offset of the script within the resource with given URL.endLine
- Last line of the script.endColumn
- Length of the last line of the script.executionContextId
- Specifies script creation context.hash
- Content hash of the script.executionContextAuxData
- Embedder-specific auxiliary data.
OPTIONALisLiveEdit
- True, if this script is generated as a result of the live edit operation.
OPTIONAL
EXPERIMENTALsourceMapURL
- URL of source map associated with script (if any).
OPTIONALhasSourceURL
- True, if this script has sourceURL.
OPTIONALisModule
- True, if this script is ES6 module.
OPTIONALlength
- This script length.
OPTIONALstackTrace
- JavaScript top stack frame of where the script parsed event was triggered if available.
OPTIONAL
EXPERIMENTALcodeOffset
- If the scriptLanguage is WebAssembly, the code section offset in the module.
OPTIONAL
EXPERIMENTALscriptLanguage
- The language of the script.
OPTIONAL
EXPERIMENTALdebugSymbols
- If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
OPTIONAL
EXPERIMENTALembedderName
- The name the embedder supplied for this script.
OPTIONAL
EXPERIMENTAL
-
scriptParsed
public scriptParsed(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'scriptParsed'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...- Specified by:
optionals
in classBaseType
- Returns:
- A
boolean[]
array whose length is precisely equal to the number of fields in the Java Object. - Code:
- Exact Method Body:
return new boolean[] { false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, };
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; scriptParsed o = (scriptParsed) other; return Objects.equals(this.scriptId, o.scriptId) && Objects.equals(this.url, o.url) && (this.startLine == o.startLine) && (this.startColumn == o.startColumn) && (this.endLine == o.endLine) && (this.endColumn == o.endColumn) && Objects.equals(this.executionContextId, o.executionContextId) && Objects.equals(this.hash, o.hash) && Objects.equals(this.executionContextAuxData, o.executionContextAuxData) && Objects.equals(this.isLiveEdit, o.isLiveEdit) && Objects.equals(this.sourceMapURL, o.sourceMapURL) && Objects.equals(this.hasSourceURL, o.hasSourceURL) && Objects.equals(this.isModule, o.isModule) && Objects.equals(this.length, o.length) && Objects.equals(this.stackTrace, o.stackTrace) && Objects.equals(this.codeOffset, o.codeOffset) && Objects.equals(this.scriptLanguage, o.scriptLanguage) && Objects.equals(this.debugSymbols, o.debugSymbols) && Objects.equals(this.embedderName, o.embedderName);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.scriptId) + Objects.hashCode(this.url) + this.startLine + this.startColumn + this.endLine + this.endColumn + this.executionContextId + Objects.hashCode(this.hash) + Objects.hashCode(this.executionContextAuxData) + Objects.hashCode(this.isLiveEdit) + Objects.hashCode(this.sourceMapURL) + Objects.hashCode(this.hasSourceURL) + Objects.hashCode(this.isModule) + Objects.hashCode(this.length) + this.stackTrace.hashCode() + Objects.hashCode(this.codeOffset) + Objects.hashCode(this.scriptLanguage) + this.debugSymbols.hashCode() + Objects.hashCode(this.embedderName);
-
-