Package com.strobel.decompiler.languages
Class TextLocation
- java.lang.Object
-
- com.strobel.decompiler.languages.TextLocation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TextLocation>
public final class TextLocation extends java.lang.Object implements java.lang.Comparable<TextLocation>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
_column
private int
_line
static TextLocation
EMPTY
static int
MIN_COLUMN
static int
MIN_LINE
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
TextLocation()
TextLocation(int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
MIN_LINE
public static final int MIN_LINE
- See Also:
- Constant Field Values
-
MIN_COLUMN
public static final int MIN_COLUMN
- See Also:
- Constant Field Values
-
EMPTY
public static final TextLocation EMPTY
-
_line
private final int _line
-
_column
private final int _column
-
-
Method Detail
-
line
public final int line()
-
column
public final int column()
-
isEmpty
public final boolean isEmpty()
-
isBefore
public final boolean isBefore(TextLocation other)
-
isAfter
public final boolean isAfter(TextLocation other)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public final int compareTo(TextLocation o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<TextLocation>
-
-