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,
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(Object o) |
String |
getType()
Returns the content type of the region.
|
int |
hashCode() |
String |
toString() |
public TypedPosition(int offset,
int length,
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 regionpublic String getType()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.