com.github.harbby.dsxparser.tree.NodeLocation Maven / Gradle / Ivy
The newest version!
package com.github.harbby.dsxparser.tree;
public final class NodeLocation {
private final int line;
private final int charPositionInLine;
public NodeLocation(int line, int charPositionInLine) {
this.line = line;
this.charPositionInLine = charPositionInLine;
}
public int getLineNumber() {
return line;
}
public int getColumnNumber() {
return charPositionInLine + 1;
}
}