Package org.eclipse.jface.text
Class Region
- java.lang.Object
-
- org.eclipse.jface.text.Region
-
- All Implemented Interfaces:
IRegion
- Direct Known Subclasses:
TypedRegion
public class Region extends java.lang.Object implements IRegion
The default implementation of theIRegioninterface.
-
-
Constructor Summary
Constructors Constructor Description Region(int offset, int length)Create a new region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetLength()Returns the length of the region.intgetOffset()Returns the offset of the region.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getLength
public int getLength()
Description copied from interface:IRegionReturns the length of the region.
-
getOffset
public int getOffset()
Description copied from interface:IRegionReturns the offset of the region.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-