public final class TextFormatParseLocation
extends java.lang.Object
A location is the starting line number and starting column number.
Modifier and Type | Field and Description |
---|---|
private int |
column |
static TextFormatParseLocation |
EMPTY
The empty location.
|
private int |
line |
Modifier | Constructor and Description |
---|---|
private |
TextFormatParseLocation(int line,
int column) |
Modifier and Type | Method and Description |
---|---|
(package private) static TextFormatParseLocation |
create(int line,
int column)
Create a location.
|
boolean |
equals(java.lang.Object o) |
int |
getColumn() |
int |
getLine() |
int |
hashCode() |
java.lang.String |
toString() |
public static final TextFormatParseLocation EMPTY
private final int line
private final int column
static TextFormatParseLocation create(int line, int column)
line
- the starting line numbercolumn
- the starting column numberParseLocation
public int getLine()
public int getColumn()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object