|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jpt.core.utility.TextRange.Empty
public static final class TextRange.Empty
Empty implementation of text range.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.utility.TextRange |
---|
TextRange.Empty |
Field Summary | |
---|---|
static TextRange |
INSTANCE
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Return true if the offsets and lengths are the same. |
int |
getLength()
Return the length of the text. |
int |
getLineNumber()
Return the line number of the text. |
int |
getOffset()
Returns the offset of the text. |
int |
hashCode()
Return a hash code that corresponds to the #equals() contract. |
boolean |
includes(int index)
Return whether the range includes the character at the specified index. |
static TextRange |
instance()
|
java.lang.String |
toString()
|
boolean |
touches(int index)
Return whether the range touches an insertion cursor at the specified index. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TextRange INSTANCE
Method Detail |
---|
public static TextRange instance()
public int getOffset()
TextRange
getOffset
in interface TextRange
public int getLength()
TextRange
getLength
in interface TextRange
public boolean includes(int index)
TextRange
includes
in interface TextRange
public boolean touches(int index)
TextRange
touches
in interface TextRange
public int getLineNumber()
TextRange
getLineNumber
in interface TextRange
public boolean equals(java.lang.Object o)
TextRange
equals
in interface TextRange
equals
in class java.lang.Object
public int hashCode()
TextRange
hashCode
in interface TextRange
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |