|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.Region
A default implementation of the IRegion
interface.
Constructor Summary | |
Region(int offset,
int length)
Create a new region. |
Method Summary | |
boolean |
equals(Object o)
Two regions are equal if they have the same offset and length. |
int |
getLength()
Returns the length of the region. |
int |
getOffset()
Returns the offset of the region. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Region(int offset, int length)
offset
- the offset of the regionlength
- the length of the regionMethod Detail |
public int getLength()
IRegion
getLength
in interface IRegion
public int getOffset()
IRegion
getOffset
in interface IRegion
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |