public class DefaultTextPointer extends java.lang.Object implements TextPointer
Constructor and Description |
---|
DefaultTextPointer(int line,
int lineOffset) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TextPointer o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
line()
The logical line where this pointer is located.
|
int |
lineOffset()
The offset of this pointer in the current line.
|
java.lang.String |
toString() |
public int line()
TextPointer
line
in interface TextPointer
public int lineOffset()
TextPointer
lineOffset
in interface TextPointer
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(TextPointer o)
compareTo
in interface java.lang.Comparable<TextPointer>