org.eclipse.jface.text
Class TypedPosition
java.lang.Object
|
+--org.eclipse.jface.text.Position
|
+--org.eclipse.jface.text.TypedPosition
- public class TypedPosition
- extends Position
Convenience class for position like typed regions.
TypedPosition
public TypedPosition(int offset,
int length,
String type)
- Creates a position along the given specification.
- Parameters:
offset
- the offset of this positionlength
- the length of this positiontype
- the type of this position
TypedPosition
public TypedPosition(ITypedRegion region)
- Creates a position based on the typed region.
- Parameters:
region
- the typed region
getType
public String getType()
- Returns the type of the position
- Returns:
- the type of this position
equals
public boolean equals(Object o)
- Overrides:
equals
in class Position
hashCode
public int hashCode()
- Overrides:
hashCode
in class Position
Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.