Class ScriptFailedToParse
- java.lang.Object
-
- org.openqa.selenium.devtools.v112.debugger.model.ScriptFailedToParse
-
public class ScriptFailedToParse extends java.lang.Object
Fired when virtual machine fails to parse the script.
-
-
Constructor Summary
Constructors Constructor Description ScriptFailedToParse(ScriptId scriptId, java.lang.String url, java.lang.Integer startLine, java.lang.Integer startColumn, java.lang.Integer endLine, java.lang.Integer endColumn, ExecutionContextId executionContextId, java.lang.String hash, java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> executionContextAuxData, java.util.Optional<java.lang.String> sourceMapURL, java.util.Optional<java.lang.Boolean> hasSourceURL, java.util.Optional<java.lang.Boolean> isModule, java.util.Optional<java.lang.Integer> length, java.util.Optional<StackTrace> stackTrace, java.util.Optional<java.lang.Integer> codeOffset, java.util.Optional<ScriptLanguage> scriptLanguage, java.util.Optional<java.lang.String> embedderName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
getCodeOffset()
If the scriptLanguage is WebAssembly, the code section offset in the module.java.util.Optional<java.lang.String>
getEmbedderName()
The name the embedder supplied for this script.java.lang.Integer
getEndColumn()
Length of the last line of the script.java.lang.Integer
getEndLine()
Last line of the script.java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>
getExecutionContextAuxData()
Embedder-specific auxiliary data.ExecutionContextId
getExecutionContextId()
Specifies script creation context.java.lang.String
getHash()
Content hash of the script, SHA-256.java.util.Optional<java.lang.Boolean>
getHasSourceURL()
True, if this script has sourceURL.java.util.Optional<java.lang.Boolean>
getIsModule()
True, if this script is ES6 module.java.util.Optional<java.lang.Integer>
getLength()
This script length.ScriptId
getScriptId()
Identifier of the script parsed.java.util.Optional<ScriptLanguage>
getScriptLanguage()
The language of the script.java.util.Optional<java.lang.String>
getSourceMapURL()
URL of source map associated with script (if any).java.util.Optional<StackTrace>
getStackTrace()
JavaScript top stack frame of where the script parsed event was triggered if available.java.lang.Integer
getStartColumn()
Column offset of the script within the resource with given URL.java.lang.Integer
getStartLine()
Line offset of the script within the resource with given URL (for script tags).java.lang.String
getUrl()
URL or name of the script parsed (if any).
-
-
-
Constructor Detail
-
ScriptFailedToParse
public ScriptFailedToParse(ScriptId scriptId, java.lang.String url, java.lang.Integer startLine, java.lang.Integer startColumn, java.lang.Integer endLine, java.lang.Integer endColumn, ExecutionContextId executionContextId, java.lang.String hash, java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> executionContextAuxData, java.util.Optional<java.lang.String> sourceMapURL, java.util.Optional<java.lang.Boolean> hasSourceURL, java.util.Optional<java.lang.Boolean> isModule, java.util.Optional<java.lang.Integer> length, java.util.Optional<StackTrace> stackTrace, java.util.Optional<java.lang.Integer> codeOffset, java.util.Optional<ScriptLanguage> scriptLanguage, java.util.Optional<java.lang.String> embedderName)
-
-
Method Detail
-
getScriptId
public ScriptId getScriptId()
Identifier of the script parsed.
-
getUrl
public java.lang.String getUrl()
URL or name of the script parsed (if any).
-
getStartLine
public java.lang.Integer getStartLine()
Line offset of the script within the resource with given URL (for script tags).
-
getStartColumn
public java.lang.Integer getStartColumn()
Column offset of the script within the resource with given URL.
-
getEndLine
public java.lang.Integer getEndLine()
Last line of the script.
-
getEndColumn
public java.lang.Integer getEndColumn()
Length of the last line of the script.
-
getExecutionContextId
public ExecutionContextId getExecutionContextId()
Specifies script creation context.
-
getHash
public java.lang.String getHash()
Content hash of the script, SHA-256.
-
getExecutionContextAuxData
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> getExecutionContextAuxData()
Embedder-specific auxiliary data.
-
getSourceMapURL
public java.util.Optional<java.lang.String> getSourceMapURL()
URL of source map associated with script (if any).
-
getHasSourceURL
public java.util.Optional<java.lang.Boolean> getHasSourceURL()
True, if this script has sourceURL.
-
getIsModule
public java.util.Optional<java.lang.Boolean> getIsModule()
True, if this script is ES6 module.
-
getLength
public java.util.Optional<java.lang.Integer> getLength()
This script length.
-
getStackTrace
@Beta public java.util.Optional<StackTrace> getStackTrace()
JavaScript top stack frame of where the script parsed event was triggered if available.
-
getCodeOffset
@Beta public java.util.Optional<java.lang.Integer> getCodeOffset()
If the scriptLanguage is WebAssembly, the code section offset in the module.
-
getScriptLanguage
@Beta public java.util.Optional<ScriptLanguage> getScriptLanguage()
The language of the script.
-
getEmbedderName
@Beta public java.util.Optional<java.lang.String> getEmbedderName()
The name the embedder supplied for this script.
-
-