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_columnprivate int_linestatic TextLocationEMPTYstatic intMIN_COLUMNstatic intMIN_LINEprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateTextLocation()TextLocation(int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumn()intcompareTo(TextLocation o)booleanequals(java.lang.Object obj)inthashCode()booleanisAfter(TextLocation other)booleanisBefore(TextLocation other)booleanisEmpty()intline()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public final int compareTo(TextLocation o)
- Specified by:
compareToin interfacejava.lang.Comparable<TextLocation>
-
-