public class TypedPosition extends Position
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.
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getType()
Returns the content type of the region.
|
int |
hashCode() |
java.lang.String |
toString() |
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
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.