Class ScriptParsed


  • public class ScriptParsed
    extends java.lang.Object
    Fired 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.Optional<java.util.Map<java.lang.String,​java.lang.Object>> executionContextAuxData, java.util.Optional<java.lang.Boolean> isLiveEdit, 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<DebugSymbols> debugSymbols, 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<DebugSymbols> getDebugSymbols()
      If the scriptLanguage is WebASsembly, the source of debug symbols for 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.
      java.util.Optional<java.lang.Boolean> getHasSourceURL()
      True, if this script has sourceURL.
      java.util.Optional<java.lang.Boolean> getIsLiveEdit()
      True, if this script is generated as a result of the live edit operation.
      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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.Optional<java.util.Map<java.lang.String,​java.lang.Object>> executionContextAuxData,
                            java.util.Optional<java.lang.Boolean> isLiveEdit,
                            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<DebugSymbols> debugSymbols,
                            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.
      • getExecutionContextAuxData

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getExecutionContextAuxData()
        Embedder-specific auxiliary data.
      • getIsLiveEdit

        @Beta
        public java.util.Optional<java.lang.Boolean> getIsLiveEdit()
        True, if this script is generated as a result of the live edit operation.
      • 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.
      • getDebugSymbols

        @Beta
        public java.util.Optional<DebugSymbols> getDebugSymbols()
        If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
      • getEmbedderName

        @Beta
        public java.util.Optional<java.lang.String> getEmbedderName()
        The name the embedder supplied for this script.