Package org.eclipse.jface.text
Class TypedPosition
java.lang.Object
org.eclipse.jface.text.Position
org.eclipse.jface.text.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
-
Constructor Summary
ConstructorsConstructorDescriptionTypedPosition(int offset, int length, String type) Creates a position along the given specification.TypedPosition(ITypedRegion region) Creates a position based on the typed region. -
Method Summary
-
Constructor Details
-
TypedPosition
Creates a position along the given specification.- Parameters:
offset- the offset of this positionlength- the length of this positiontype- the content type of this position
-
TypedPosition
Creates a position based on the typed region.- Parameters:
region- the typed region
-
-
Method Details