|
||||||||||
| 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 getLineNumber()
TextRange
getLineNumber in interface TextRangepublic int getOffset()
TextRange
getOffset in interface TextRangepublic int getLength()
TextRange
getLength in interface TextRangepublic boolean includes(int index)
TextRange
includes in interface TextRangepublic boolean touches(int index)
TextRange
touches in interface TextRangepublic boolean equals(java.lang.Object o)
TextRange
equals in interface TextRangeequals in class java.lang.Objectpublic int hashCode()
TextRange
hashCode in interface TextRangehashCode in class java.lang.Objectpublic 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 | |||||||||