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 numberParseLocationpublic int getLine()
public int getColumn()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object