Class ScriptParsed

java.lang.Object
io.webfolder.cdp.event.debugger.ScriptParsed

public class ScriptParsed extends Object
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
  • Constructor Details

    • ScriptParsed

      public ScriptParsed()
  • Method Details

    • getScriptId

      public String getScriptId()
      Identifier of the script parsed.
    • setScriptId

      public void setScriptId(String scriptId)
      Identifier of the script parsed.
    • getUrl

      public String getUrl()
      URL or name of the script parsed (if any).
    • setUrl

      public void setUrl(String url)
      URL or name of the script parsed (if any).
    • getStartLine

      public Integer getStartLine()
      Line offset of the script within the resource with given URL (for script tags).
    • setStartLine

      public void setStartLine(Integer startLine)
      Line offset of the script within the resource with given URL (for script tags).
    • getStartColumn

      public Integer getStartColumn()
      Column offset of the script within the resource with given URL.
    • setStartColumn

      public void setStartColumn(Integer startColumn)
      Column offset of the script within the resource with given URL.
    • getEndLine

      public Integer getEndLine()
      Last line of the script.
    • setEndLine

      public void setEndLine(Integer endLine)
      Last line of the script.
    • getEndColumn

      public Integer getEndColumn()
      Length of the last line of the script.
    • setEndColumn

      public void setEndColumn(Integer endColumn)
      Length of the last line of the script.
    • getExecutionContextId

      public Integer getExecutionContextId()
      Specifies script creation context.
    • setExecutionContextId

      public void setExecutionContextId(Integer executionContextId)
      Specifies script creation context.
    • getHash

      public String getHash()
      Content hash of the script, SHA-256.
    • setHash

      public void setHash(String hash)
      Content hash of the script, SHA-256.
    • getExecutionContextAuxData

      public Object getExecutionContextAuxData()
      Embedder-specific auxiliary data.
    • setExecutionContextAuxData

      public void setExecutionContextAuxData(Object executionContextAuxData)
      Embedder-specific auxiliary data.
    • isIsLiveEdit

      public Boolean isIsLiveEdit()
      True, if this script is generated as a result of the live edit operation.
    • setIsLiveEdit

      public void setIsLiveEdit(Boolean isLiveEdit)
      True, if this script is generated as a result of the live edit operation.
    • getSourceMapURL

      public String getSourceMapURL()
      URL of source map associated with script (if any).
    • setSourceMapURL

      public void setSourceMapURL(String sourceMapURL)
      URL of source map associated with script (if any).
    • isHasSourceURL

      public Boolean isHasSourceURL()
      True, if this script has sourceURL.
    • setHasSourceURL

      public void setHasSourceURL(Boolean hasSourceURL)
      True, if this script has sourceURL.
    • isIsModule

      public Boolean isIsModule()
      True, if this script is ES6 module.
    • setIsModule

      public void setIsModule(Boolean isModule)
      True, if this script is ES6 module.
    • getLength

      public Integer getLength()
      This script length.
    • setLength

      public void setLength(Integer length)
      This script length.
    • getStackTrace

      public StackTrace getStackTrace()
      JavaScript top stack frame of where the script parsed event was triggered if available.
    • setStackTrace

      public void setStackTrace(StackTrace stackTrace)
      JavaScript top stack frame of where the script parsed event was triggered if available.
    • getCodeOffset

      public Integer getCodeOffset()
      If the scriptLanguage is WebAssembly, the code section offset in the module.
    • setCodeOffset

      public void setCodeOffset(Integer codeOffset)
      If the scriptLanguage is WebAssembly, the code section offset in the module.
    • getScriptLanguage

      public ScriptLanguage getScriptLanguage()
      The language of the script.
    • setScriptLanguage

      public void setScriptLanguage(ScriptLanguage scriptLanguage)
      The language of the script.
    • getDebugSymbols

      public DebugSymbols getDebugSymbols()
      If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
    • setDebugSymbols

      public void setDebugSymbols(DebugSymbols debugSymbols)
      If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
    • getEmbedderName

      public String getEmbedderName()
      The name the embedder supplied for this script.
    • setEmbedderName

      public void setEmbedderName(String embedderName)
      The name the embedder supplied for this script.
    • toString

      public String toString()
      Overrides:
      toString in class Object