Package 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 ofITypedRegion. ATypedRegionis a value object.
-
-
Constructor Summary
Constructors Constructor Description TypedRegion(int offset, int length, java.lang.String type)Creates a typed region based on the given specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetType()Returns the content type of the region.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from interface:ITypedRegionReturns the content type of the region.- Specified by:
getTypein interfaceITypedRegion- Returns:
- the content type of the region
-
-