public final class TextLocation extends java.lang.Object implements java.lang.Comparable<TextLocation>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static TextLocation |
EMPTY |
static int |
MIN_COLUMN |
static int |
MIN_LINE |
| Constructor and Description |
|---|
TextLocation(int line,
int column) |
| Modifier and Type | Method and Description |
|---|---|
int |
column() |
int |
compareTo(TextLocation o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isAfter(TextLocation other) |
boolean |
isBefore(TextLocation other) |
boolean |
isEmpty() |
int |
line() |
java.lang.String |
toString() |
public static final int MIN_LINE
public static final int MIN_COLUMN
public static final TextLocation EMPTY
public final int line()
public final int column()
public final boolean isEmpty()
public final boolean isBefore(TextLocation other)
public final boolean isAfter(TextLocation other)
public final java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int compareTo(TextLocation o)
compareTo in interface java.lang.Comparable<TextLocation>