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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy