public final class Range
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Range> |
DEPENDENCY_ORDER_COMPARATOR
Sorts Ranges so that a Range will be preceeded by any Ranges that enclose
it.
|
(package private) int |
end |
(package private) int |
endColumn |
(package private) int |
endLine |
static java.util.Comparator<Range> |
SOURCE_ORDER_COMPARATOR
Sorts Ranges into the order in which they would appear in the source code
based on start position and end position.
|
(package private) int |
start |
(package private) int |
startColumn |
(package private) int |
startLine |
Constructor and Description |
---|
Range(int start,
int end)
Constructor.
|
Range(int start,
int end,
int startLine,
int startColumn,
int endLine,
int endColumn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Range o)
Return
true if the given Range lies wholly within the Range. |
boolean |
equals(java.lang.Object obj) |
int |
getEnd() |
int |
getEndColumn() |
int |
getEndLine() |
int |
getStart() |
int |
getStartColumn() |
int |
getStartLine() |
int |
hashCode() |
int |
length() |
java.lang.String |
toString()
For debugging use only.
|
public static final java.util.Comparator<Range> DEPENDENCY_ORDER_COMPARATOR
public static final java.util.Comparator<Range> SOURCE_ORDER_COMPARATOR
final int end
final int endLine
final int endColumn
final int start
final int startLine
final int startColumn
public Range(int start, int end)
start
- must be non-negativeend
- must be greater than or equal to start
public Range(int start, int end, int startLine, int startColumn, int endLine, int endColumn)
start
- must be non-negativeend
- must be greater than or equal to start
public boolean contains(Range o)
true
if the given Range lies wholly within the Range.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getEnd()
public int getEndColumn()
public int getEndLine()
public int getStart()
public int getStartColumn()
public int getStartLine()
public int hashCode()
hashCode
in class java.lang.Object
public int length()
public java.lang.String toString()
toString
in class java.lang.Object