org.eclipse.jface.text
Class TypedRegion
java.lang.Object
|
+--org.eclipse.jface.text.Region
|
+--org.eclipse.jface.text.TypedRegion
- All Implemented Interfaces:
- IRegion, ITypedRegion
- public class TypedRegion
- extends Region
- implements ITypedRegion
Default implementation of ITypedRegion
.
Constructor Summary |
TypedRegion(int offset,
int length,
String type)
Creates a typed region based on the given specification. |
Method Summary |
boolean |
equals(Object o)
Two typed positions are equal if they have the same offset, length, and type. |
String |
getType()
Returns the content type of the region. |
int |
hashCode()
|
TypedRegion
public TypedRegion(int offset,
int length,
String type)
- Creates a typed region based on the given specification.
- Parameters:
offset
- the region's offsetlength
- the region's lengthtype
- the region's type
getType
public String getType()
- Description copied from interface:
ITypedRegion
- Returns the content type of the region.
- Specified by:
getType
in interface ITypedRegion
- Following copied from interface:
org.eclipse.jface.text.ITypedRegion
- Returns:
- the content type of the region
equals
public boolean equals(Object o)
- Two typed positions are equal if they have the same offset, length, and type.
- Overrides:
equals
in class Region
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Region
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.