Package Torello.Browser.JavaScriptAPI
Class Debugger.scriptParsed
- java.lang.Object
-
- Torello.Browser.BaseType<DOMAIN_NESTED>
-
- Torello.Browser.BrowserEvent<Debugger.scriptParsed>
-
- Torello.Browser.JavaScriptAPI.Debugger.scriptParsed
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Debugger
public static class Debugger.scriptParsed extends BrowserEvent<Debugger.scriptParsed> implements java.io.Serializable
This Nested Java Class is declared as an Event-Type by the CDP API Specifications. This class largely functions as a data container or "data record", and encapsulates the datum values that Google Chrome is incorporating into the event that it is firing.
📌 All browser domain event classes will have a class name that begins with a lower case letter.
👉 Note that this particular event can be fired by theDebuggerdomain, located in theJavaScriptAPI. A browser 'domain' is quite similar to a Java Package. It incorporates a suite of features, types and functions under one umbrella.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:This File's Source Code:
- View Here: Torello/Browser/JavaScriptAPI/Debugger.java
- Open New Browser-Tab: Torello/Browser/JavaScriptAPI/Debugger.java
File Size: 7,177 Bytes Line Count: 169 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Debugger$$scriptParsed$$.java
- Open New Browser-Tab: Debugger$$scriptParsed$$.java
File Size: 21,085 Bytes Line Count: 479 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description StringbuildIdFor Wasm modules, the content of thebuild_idcustom section.IntegercodeOffsetIf the scriptLanguage is WebAssembly, the code section offset in the module.Debugger.DebugSymbols[]debugSymbolsIf the scriptLanguage is WebAssembly, the source of debug symbols for the module.StringembedderNameThe name the embedder supplied for this script.intendColumnLength of the last line of the script.intendLineLast line of the script.JsonValueexecutionContextAuxDataEmbedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}intexecutionContextIdSpecifies script creation context.StringhashContent hash of the script, SHA-256.BooleanhasSourceURLTrue, if this script has sourceURL.BooleanisLiveEditTrue, if this script is generated as a result of the live edit operation.BooleanisModuleTrue, if this script is ES6 module.IntegerlengthThis script length.Debugger.ResolvedBreakpoint[]resolvedBreakpointsThe list of set breakpoints in this script if calls tosetBreakpointByUrlmatches this script's URL or hash.StringscriptIdIdentifier of the script parsed.StringscriptLanguageThe language of the script.StringsourceMapURLURL of source map associated with script (if any).RunTime.StackTracestackTraceJavaScript top stack frame of where the script parsed event was triggered if available.intstartColumnColumn offset of the script within the resource with given URL.intstartLineLine offset of the script within the resource with given URL (for script tags).StringurlURL or name of the script parsed (if any).
-
Constructor Summary
Constructors Constructor Description scriptParsed(ReadOnlyList<Boolean> isPresent, String scriptId, String url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, String hash, String buildId, JsonValue executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, RunTime.StackTrace stackTrace, Integer codeOffset, String scriptLanguage, Debugger.DebugSymbols[] debugSymbols, String embedderName, Debugger.ResolvedBreakpoint[] resolvedBreakpoints)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Debugger.scriptParsedfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Debugger.scriptParsed>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- 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, SHA-256.
-
buildId
public final java.lang.String buildId
For Wasm modules, the content of thebuild_idcustom section. For JavaScript thedebugIdmagic comment.
-
executionContextAuxData
public final JsonValue executionContextAuxData
Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
OPTIONAL
-
isLiveEdit
public final java.lang.Boolean isLiveEdit
True, if this script is generated as a result of the live edit operation.
OPTIONALEXPERIMENTAL
-
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.
OPTIONALEXPERIMENTAL
-
codeOffset
public final java.lang.Integer codeOffset
If the scriptLanguage is WebAssembly, the code section offset in the module.
OPTIONALEXPERIMENTAL
-
scriptLanguage
public final java.lang.String scriptLanguage
The language of the script.
OPTIONALEXPERIMENTALThis particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:
📎Debugger.ScriptLanguage
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = Debugger.ScriptLanguage.enumStrList("scriptLanguage"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
debugSymbols
public final Debugger.DebugSymbols[] debugSymbols
If the scriptLanguage is WebAssembly, the source of debug symbols for the module.
OPTIONALEXPERIMENTAL
-
embedderName
public final java.lang.String embedderName
The name the embedder supplied for this script.
OPTIONALEXPERIMENTAL
-
resolvedBreakpoints
public final Debugger.ResolvedBreakpoint[] resolvedBreakpoints
The list of set breakpoints in this script if calls tosetBreakpointByUrlmatches this script's URL or hash. Clients that use this list can ignore thebreakpointResolvedevent. They are equivalent.
OPTIONALEXPERIMENTAL
-
-
Constructor Detail
-
scriptParsed
public scriptParsed(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String scriptId, java.lang.String url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, java.lang.String hash, java.lang.String buildId, JsonValue 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, Debugger.ResolvedBreakpoint[] resolvedBreakpoints)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Debugger.scriptParsed fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Debugger.scriptParsed> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-