-
public final class DebuggerEvent.ScriptParsedEvent extends DebuggerEvent
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringscriptIdprivate final Stringurlprivate final IntegerstartLineprivate final IntegerstartColumnprivate final IntegerendLineprivate final IntegerendColumnprivate final IntegerexecutionContextIdprivate final Stringhashprivate final JsonElementexecutionContextAuxDataprivate final BooleanisLiveEditprivate final StringsourceMapURLprivate final BooleanhasSourceURLprivate final BooleanisModuleprivate final Integerlengthprivate final StackTracestackTraceprivate final IntegercodeOffsetprivate final ScriptLanguagescriptLanguageprivate final DebugSymbolsdebugSymbolsprivate final StringembedderName
-
Constructor Summary
Constructors Constructor Description ScriptParsedEvent(String scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, Integer executionContextId, String hash, JsonElement executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, StackTrace stackTrace, Integer codeOffset, ScriptLanguage scriptLanguage, DebugSymbols debugSymbols, String embedderName)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Integercomponent3()final Integercomponent4()final Integercomponent5()final Integercomponent6()final Integercomponent7()final Stringcomponent8()final JsonElementcomponent9()final Booleancomponent10()final Stringcomponent11()final Booleancomponent12()final Booleancomponent13()final Integercomponent14()final StackTracecomponent15()final Integercomponent16()final ScriptLanguagecomponent17()final DebugSymbolscomponent18()final Stringcomponent19()final DebuggerEvent.ScriptParsedEventcopy(String scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, Integer executionContextId, String hash, JsonElement executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, StackTrace stackTrace, Integer codeOffset, ScriptLanguage scriptLanguage, DebugSymbols debugSymbols, String embedderName)final StringgetScriptId()Identifier of the script parsed. final StringgetUrl()URL or name of the script parsed (if any). final IntegergetStartLine()Line offset of the script within the resource with given URL (for script tags). final IntegergetStartColumn()Column offset of the script within the resource with given URL. final IntegergetEndLine()Last line of the script. final IntegergetEndColumn()Length of the last line of the script. final IntegergetExecutionContextId()Specifies script creation context. final StringgetHash()Content hash of the script. final JsonElementgetExecutionContextAuxData()Embedder-specific auxiliary data. final BooleangetIsLiveEdit()True, if this script is generated as a result of the live edit operation. final StringgetSourceMapURL()URL of source map associated with script (if any). final BooleangetHasSourceURL()True, if this script has sourceURL. final BooleangetIsModule()True, if this script is ES6 module. final IntegergetLength()This script length. final StackTracegetStackTrace()JavaScript top stack frame of where the script parsed event was triggered if available. final IntegergetCodeOffset()If the scriptLanguage is WebAssembly, the code section offset in the module. final ScriptLanguagegetScriptLanguage()The language of the script. final DebugSymbolsgetDebugSymbols()If the scriptLanguage is WebASsembly, the source of debug symbols for the module. final StringgetEmbedderName()The name the embedder supplied for this script. -
-
Constructor Detail
-
ScriptParsedEvent
ScriptParsedEvent(String scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, Integer executionContextId, String hash, JsonElement executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, StackTrace stackTrace, Integer codeOffset, ScriptLanguage scriptLanguage, DebugSymbols debugSymbols, String embedderName)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final Integer component3()
-
component4
final Integer component4()
-
component5
final Integer component5()
-
component6
final Integer component6()
-
component7
final Integer component7()
-
component8
final String component8()
-
component9
final JsonElement component9()
-
component10
final Boolean component10()
-
component11
final String component11()
-
component12
final Boolean component12()
-
component13
final Boolean component13()
-
component14
final Integer component14()
-
component15
final StackTrace component15()
-
component16
final Integer component16()
-
component17
final ScriptLanguage component17()
-
component18
final DebugSymbols component18()
-
component19
final String component19()
-
copy
final DebuggerEvent.ScriptParsedEvent copy(String scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, Integer executionContextId, String hash, JsonElement executionContextAuxData, Boolean isLiveEdit, String sourceMapURL, Boolean hasSourceURL, Boolean isModule, Integer length, StackTrace stackTrace, Integer codeOffset, ScriptLanguage scriptLanguage, DebugSymbols debugSymbols, String embedderName)
-
getScriptId
final String getScriptId()
Identifier of the script parsed.
-
getStartLine
final Integer getStartLine()
Line offset of the script within the resource with given URL (for script tags).
-
getStartColumn
final Integer getStartColumn()
Column offset of the script within the resource with given URL.
-
getEndLine
final Integer getEndLine()
Last line of the script.
-
getEndColumn
final Integer getEndColumn()
Length of the last line of the script.
-
getExecutionContextId
final Integer getExecutionContextId()
Specifies script creation context.
-
getExecutionContextAuxData
final JsonElement getExecutionContextAuxData()
Embedder-specific auxiliary data.
-
getIsLiveEdit
final Boolean getIsLiveEdit()
True, if this script is generated as a result of the live edit operation.
-
getSourceMapURL
final String getSourceMapURL()
URL of source map associated with script (if any).
-
getHasSourceURL
final Boolean getHasSourceURL()
True, if this script has sourceURL.
-
getIsModule
final Boolean getIsModule()
True, if this script is ES6 module.
-
getStackTrace
final StackTrace getStackTrace()
JavaScript top stack frame of where the script parsed event was triggered if available.
-
getCodeOffset
final Integer getCodeOffset()
If the scriptLanguage is WebAssembly, the code section offset in the module.
-
getScriptLanguage
final ScriptLanguage getScriptLanguage()
The language of the script.
-
getDebugSymbols
final DebugSymbols getDebugSymbols()
If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
-
getEmbedderName
final String getEmbedderName()
The name the embedder supplied for this script.
-
-
-
-