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

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

There is a newer version: 94.0.4606.61
Show newest version
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.runtime.ScriptId;

public final class BreakLocation {
  private ScriptId scriptId;

  private Integer lineNumber;

  private Integer columnNumber;

  private String type;

  @JsonCreator
  public BreakLocation(@JsonProperty("scriptId") ScriptId scriptId,
      @JsonProperty("lineNumber") Integer lineNumber,
      @JsonProperty("columnNumber") Integer columnNumber, @JsonProperty("type") String type) {
    this.scriptId = scriptId;
    this.lineNumber = lineNumber;
    this.columnNumber = columnNumber;
    this.type = type;
  }

  public ScriptId getScriptId() {
    return scriptId;
  }

  public Integer getLineNumber() {
    return lineNumber;
  }

  public Integer getColumnNumber() {
    return columnNumber;
  }

  public String getType() {
    return type;
  }

  public static BreakLocation.Builder builder() {
    return new BreakLocation.Builder();
  }

  public static final class Builder {
    private ScriptId scriptId;

    private Integer lineNumber;

    private Integer columnNumber;

    private String type;

    private Builder() {
    }

    public BreakLocation.Builder setScriptId(ScriptId scriptId) {
      this.scriptId = scriptId;
      return this;
    }

    public BreakLocation.Builder setLineNumber(Integer lineNumber) {
      this.lineNumber = lineNumber;
      return this;
    }

    public BreakLocation.Builder setColumnNumber(Integer columnNumber) {
      this.columnNumber = columnNumber;
      return this;
    }

    public BreakLocation.Builder setType(String type) {
      this.type = type;
      return this;
    }

    public BreakLocation build() {
      return new BreakLocation(scriptId, lineNumber, columnNumber, type);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy