Class ScriptParsed
- java.lang.Object
-
- org.openqa.selenium.devtools.debugger.model.ScriptParsed
-
public class ScriptParsed extends java.lang.ObjectFired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
-
-
Constructor Summary
Constructors Constructor Description ScriptParsed(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.Map<java.lang.String,java.lang.Object> executionContextAuxData, java.lang.Boolean isLiveEdit, java.lang.String sourceMapURL, java.lang.Boolean hasSourceURL, java.lang.Boolean isModule, java.lang.Integer length, StackTrace stackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetEndColumn()Length of the last line of the script.java.lang.IntegergetEndLine()Last line of the script.java.util.Map<java.lang.String,java.lang.Object>getExecutionContextAuxData()Embedder-specific auxiliary data.ExecutionContextIdgetExecutionContextId()Specifies script creation context.java.lang.StringgetHash()Content hash of the script.java.lang.BooleangetHasSourceURL()True, if this script has sourceURL.java.lang.BooleangetIsLiveEdit()True, if this script is generated as a result of the live edit operation.java.lang.BooleangetIsModule()True, if this script is ES6 module.java.lang.IntegergetLength()This script length.ScriptIdgetScriptId()Identifier of the script parsed.java.lang.StringgetSourceMapURL()URL of source map associated with script (if any).StackTracegetStackTrace()JavaScript top stack frame of where the script parsed event was triggered if available.java.lang.IntegergetStartColumn()Column offset of the script within the resource with given URL.java.lang.IntegergetStartLine()Line offset of the script within the resource with given URL (for script tags).java.lang.StringgetUrl()URL or name of the script parsed (if any).
-
-
-
Constructor Detail
-
ScriptParsed
public ScriptParsed(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.Map<java.lang.String,java.lang.Object> executionContextAuxData, java.lang.Boolean isLiveEdit, java.lang.String sourceMapURL, java.lang.Boolean hasSourceURL, java.lang.Boolean isModule, java.lang.Integer length, StackTrace stackTrace)
-
-
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.
-
getExecutionContextAuxData
public java.util.Map<java.lang.String,java.lang.Object> getExecutionContextAuxData()
Embedder-specific auxiliary data.
-
getIsLiveEdit
@Beta public java.lang.Boolean getIsLiveEdit()
True, if this script is generated as a result of the live edit operation.
-
getSourceMapURL
public java.lang.String getSourceMapURL()
URL of source map associated with script (if any).
-
getHasSourceURL
public java.lang.Boolean getHasSourceURL()
True, if this script has sourceURL.
-
getIsModule
public java.lang.Boolean getIsModule()
True, if this script is ES6 module.
-
getLength
public java.lang.Integer getLength()
This script length.
-
getStackTrace
@Beta public StackTrace getStackTrace()
JavaScript top stack frame of where the script parsed event was triggered if available.
-
-