|
GWT 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.ext.soyc.Range
public final class Range
Represents a contiguous region of characters in the compiler output.
Field Summary | |
---|---|
static java.util.Comparator<Range> |
DEPENDENCY_ORDER_COMPARATOR
Sorts Ranges so that a Range will be preceeded by any Ranges that enclose it. |
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. |
Constructor Summary | |
---|---|
Range(int start,
int end)
Constructor. |
Method Summary | |
---|---|
boolean |
contains(Range o)
Return true if the given Range lies wholly within the Range. |
boolean |
equals(java.lang.Object obj)
|
int |
getEnd()
|
int |
getStart()
|
int |
hashCode()
|
int |
length()
|
java.lang.String |
toString()
For debugging use only. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<Range> DEPENDENCY_ORDER_COMPARATOR
public static final java.util.Comparator<Range> SOURCE_ORDER_COMPARATOR
Constructor Detail |
---|
public Range(int start, int end)
start
- must be non-negativeend
- must be greater than or equal to start
Method Detail |
---|
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 getStart()
public int hashCode()
hashCode
in class java.lang.Object
public int length()
public java.lang.String toString()
toString
in class java.lang.Object
|
GWT 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |