|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.Position
org.eclipse.jface.text.TypedPosition
public class TypedPosition
Convenience class for positions that have a type, similar to
ITypedRegion.
As Position,TypedPosition can
not be used as key in hash tables as it overrides equals and
hashCode as it would be a value object.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.text.Position |
|---|
isDeleted, length, offset |
| Constructor Summary | |
|---|---|
TypedPosition(int offset,
int length,
java.lang.String type)
Creates a position along the given specification. |
|
TypedPosition(ITypedRegion region)
Creates a position based on the typed region. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getType()
Returns the content type of the region. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.jface.text.Position |
|---|
delete, getLength, getOffset, includes, isDeleted, overlapsWith, setLength, setOffset, undelete |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypedPosition(int offset,
int length,
java.lang.String type)
offset - the offset of this positionlength - the length of this positiontype - the content type of this positionpublic TypedPosition(ITypedRegion region)
region - the typed region| Method Detail |
|---|
public java.lang.String getType()
public boolean equals(java.lang.Object o)
equals in class Positionpublic int hashCode()
hashCode in class Positionpublic java.lang.String toString()
toString in class Position
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.