All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.debugger.ScriptParsedEvent Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.debugger;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
import com.hubspot.chrome.devtools.client.core.runtime.ExecutionContextId;
import com.hubspot.chrome.devtools.client.core.runtime.ScriptId;
import com.hubspot.chrome.devtools.client.core.runtime.StackTrace;

/**
 * Fired when virtual machine parses script. This event is also fired for all known and uncollected
 * scripts upon enabling debugger.
 */
public final class ScriptParsedEvent extends Event {
  private ScriptId scriptId;

  private String url;

  private Integer startLine;

  private Integer startColumn;

  private Integer endLine;

  private Integer endColumn;

  private ExecutionContextId executionContextId;

  private String hash;

  private Object executionContextAuxData;

  private Boolean isLiveEdit;

  private String sourceMapURL;

  private Boolean hasSourceURL;

  private Boolean isModule;

  private Integer length;

  private StackTrace stackTrace;

  @JsonCreator
  public ScriptParsedEvent(@JsonProperty("scriptId") ScriptId scriptId,
      @JsonProperty("url") String url, @JsonProperty("startLine") Integer startLine,
      @JsonProperty("startColumn") Integer startColumn, @JsonProperty("endLine") Integer endLine,
      @JsonProperty("endColumn") Integer endColumn,
      @JsonProperty("executionContextId") ExecutionContextId executionContextId,
      @JsonProperty("hash") String hash,
      @JsonProperty("executionContextAuxData") Object executionContextAuxData,
      @JsonProperty("isLiveEdit") Boolean isLiveEdit,
      @JsonProperty("sourceMapURL") String sourceMapURL,
      @JsonProperty("hasSourceURL") Boolean hasSourceURL,
      @JsonProperty("isModule") Boolean isModule, @JsonProperty("length") Integer length,
      @JsonProperty("stackTrace") StackTrace stackTrace) {
    this.scriptId = scriptId;
    this.url = url;
    this.startLine = startLine;
    this.startColumn = startColumn;
    this.endLine = endLine;
    this.endColumn = endColumn;
    this.executionContextId = executionContextId;
    this.hash = hash;
    this.executionContextAuxData = executionContextAuxData;
    this.isLiveEdit = isLiveEdit;
    this.sourceMapURL = sourceMapURL;
    this.hasSourceURL = hasSourceURL;
    this.isModule = isModule;
    this.length = length;
    this.stackTrace = stackTrace;
  }

  public ScriptId getScriptId() {
    return scriptId;
  }

  public String getUrl() {
    return url;
  }

  public Integer getStartLine() {
    return startLine;
  }

  public Integer getStartColumn() {
    return startColumn;
  }

  public Integer getEndLine() {
    return endLine;
  }

  public Integer getEndColumn() {
    return endColumn;
  }

  public ExecutionContextId getExecutionContextId() {
    return executionContextId;
  }

  public String getHash() {
    return hash;
  }

  public Object getExecutionContextAuxData() {
    return executionContextAuxData;
  }

  public Boolean getIsLiveEdit() {
    return isLiveEdit;
  }

  public String getSourceMapURL() {
    return sourceMapURL;
  }

  public Boolean getHasSourceURL() {
    return hasSourceURL;
  }

  public Boolean getIsModule() {
    return isModule;
  }

  public Integer getLength() {
    return length;
  }

  public StackTrace getStackTrace() {
    return stackTrace;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy