
com.alibaba.qlexpress4.exception.lsp.Position Maven / Gradle / Ivy
package com.alibaba.qlexpress4.exception.lsp;
/**
* Author: DQinYuan
*/
public class Position {
/**
* Line position in a document (zero-based).
*/
private final int line;
/**
* Character offset on a line in a document (zero-based). The meaning of this
* offset is determined by the negotiated `PositionEncodingKind`.
*
* If the character value is greater than the line length it defaults back
* to the line length.
*/
private final int character;
public Position(int line, int character) {
this.line = line;
this.character = character;
}
public int getLine() {
return line;
}
public int getCharacter() {
return character;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy