com.hubspot.chrome.devtools.client.core.debugger.ScriptPosition Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.debugger;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Location in the source code.
*/
public final class ScriptPosition {
private Integer lineNumber;
private Integer columnNumber;
@JsonCreator
public ScriptPosition(@JsonProperty("lineNumber") Integer lineNumber,
@JsonProperty("columnNumber") Integer columnNumber) {
this.lineNumber = lineNumber;
this.columnNumber = columnNumber;
}
public Integer getLineNumber() {
return lineNumber;
}
public Integer getColumnNumber() {
return columnNumber;
}
public static ScriptPosition.Builder builder() {
return new ScriptPosition.Builder();
}
public static final class Builder {
private Integer lineNumber;
private Integer columnNumber;
private Builder() {
}
public ScriptPosition.Builder setLineNumber(Integer lineNumber) {
this.lineNumber = lineNumber;
return this;
}
public ScriptPosition.Builder setColumnNumber(Integer columnNumber) {
this.columnNumber = columnNumber;
return this;
}
public ScriptPosition build() {
return new ScriptPosition(lineNumber, columnNumber);
}
}
}