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 type of the position
|
int |
hashCode() |
public TypedPosition(int offset, int length, String type)
offset
- the offset of this positionlength
- the length of this positiontype
- the type of this positionpublic TypedPosition(ITypedRegion region)
region
- the typed regionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.