Interface Position
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Position
at
(int line, int column) int
column()
The column number at the specified line.int
The column offset at the specified line.static Position
endOf
(SyntaxToken token) static Position
endOf
(SyntaxTrivia trivia) static Position
boolean
boolean
int
line()
The line number in a file.int
The line offset in a file.static Position
startOf
(SyntaxToken token) static Position
startOf
(SyntaxTrivia trivia) static Position
Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
TREE_START_POSITION_COMPARATOR
-
FIRST_LINE
static final int FIRST_LINE- See Also:
-
FIRST_COLUMN
static final int FIRST_COLUMN- See Also:
-
-
Method Details
-
line
int line()The line number in a file. First line number is 1. -
lineOffset
int lineOffset()The line offset in a file. First line offset is 0. (lineOffset() == line() - 1) -
column
int column()The column number at the specified line. First column number is 1. (column() == columnOffset() + 1) -
columnOffset
int columnOffset()The column offset at the specified line. First column offset is 0. (columnOffset() == column() - 1) -
at
-
isBefore
-
isAfter
-
startOf
-
endOf
-
startOf
-
endOf
-
startOf
-
endOf
-