Package org.tomlj
Class TomlPosition
java.lang.Object
org.tomlj.TomlPosition
A position in an input document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TomlPosition
(int line, int column) (package private)
TomlPosition
(org.antlr.v4.runtime.ParserRuleContext ctx) (package private)
TomlPosition
(org.antlr.v4.runtime.ParserRuleContext ctx, int offset) -
Method Summary
Modifier and TypeMethodDescriptionint
column()
The column number.boolean
int
hashCode()
int
line()
The line number.static TomlPosition
positionAt
(int line, int column) Create a position.toString()
-
Field Details
-
line
private final int line -
column
private final int column
-
-
Constructor Details
-
TomlPosition
private TomlPosition(int line, int column) -
TomlPosition
TomlPosition(org.antlr.v4.runtime.ParserRuleContext ctx) -
TomlPosition
TomlPosition(org.antlr.v4.runtime.ParserRuleContext ctx, int offset)
-
-
Method Details
-
positionAt
Create a position.- Parameters:
line
- The line.column
- The column.- Returns:
- A position.
-
line
public int line()The line number.The first line of the document is line 1.
- Returns:
- The line number (1..).
-
column
public int column()The column number.The first column of the document is column 1.
- Returns:
- The column number (1..).
-
equals
-
hashCode
public int hashCode() -
toString
-