Package Torello.Browser.JavaScriptAPI
Class Debugger.scriptFailedToParse
- java.lang.Object
-
- Torello.Browser.BaseType<DOMAIN_NESTED>
-
- Torello.Browser.BrowserEvent<Debugger.scriptFailedToParse>
-
- Torello.Browser.JavaScriptAPI.Debugger.scriptFailedToParse
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Debugger
public static class Debugger.scriptFailedToParse extends BrowserEvent<Debugger.scriptFailedToParse> 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 fails to parse the script.- 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: 5,944 Bytes Line Count: 144 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Debugger$$scriptFailedToParse$$.java
- Open New Browser-Tab: Debugger$$scriptFailedToParse$$.java
File Size: 18,074 Bytes Line Count: 414 '\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.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.BooleanisModuleTrue, if this script is ES6 module.IntegerlengthThis script length.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 scriptFailedToParse(ReadOnlyList<Boolean> isPresent, String scriptId, String url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, String hash, String buildId, JsonValue executionContextAuxData, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, RunTime.StackTrace stackTrace, Integer codeOffset, String scriptLanguage, String embedderName)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Debugger.scriptFailedToParsefromJSON(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.scriptFailedToParse>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
-
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)
-
embedderName
public final java.lang.String embedderName
The name the embedder supplied for this script.
OPTIONALEXPERIMENTAL
-
-
Constructor Detail
-
scriptFailedToParse
public scriptFailedToParse(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.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, java.lang.String embedderName)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Debugger.scriptFailedToParse fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Debugger.scriptFailedToParse> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-