|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.common.core.utility.AbstractTextRange
public abstract class AbstractTextRange
Partial implementation of text range. Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.TextRange |
|---|
TextRange.Empty |
| Constructor Summary | |
|---|---|
protected |
AbstractTextRange()
|
| Method Summary | |
|---|---|
TextRange |
buildTextRange(int offset,
int length,
int lineNumber)
Build and return a new text range for the specified values if they differ from the text range. |
boolean |
equals(Object o)
Return whether the offsets, lengths, and line numbers are the same. |
protected int |
getEnd()
The end offset is exclusive, i.e. the element at the end offset is not included in the range. |
int |
hashCode()
Return a hash code that corresponds to the Object.equals(Object)
contract. |
boolean |
includes(int index)
Return whether the range includes the character at the specified index. |
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 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jpt.common.core.utility.TextRange |
|---|
getLength, getLineNumber, getOffset |
| Constructor Detail |
|---|
protected AbstractTextRange()
| Method Detail |
|---|
public boolean includes(int index)
TextRange
includes in interface TextRangepublic boolean touches(int index)
TextRange
touches in interface TextRangeprotected int getEnd()
public TextRange buildTextRange(int offset,
int length,
int lineNumber)
TextRange
buildTextRange in interface TextRangepublic boolean equals(Object o)
TextRange
equals in interface TextRangeequals in class Objectpublic int hashCode()
TextRangeObject.equals(Object)
contract.
hashCode in interface TextRangehashCode in class Objectpublic String toString()
toString in class Object
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||