org.eclipse.xtext.util
Class TextRegion
java.lang.Object
org.eclipse.xtext.util.TextRegion
- All Implemented Interfaces:
- ITextRegion
- Direct Known Subclasses:
- TextRegionWithLineInformation
@NonNullByDefault
public class TextRegion
- extends java.lang.Object
- implements ITextRegion
|
Constructor Summary |
TextRegion(int offset,
int length)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TextRegion
public TextRegion(int offset,
int length)
getOffset
public int getOffset()
- Specified by:
getOffset in interface ITextRegion
getLength
public int getLength()
- Specified by:
getLength in interface ITextRegion
merge
public ITextRegion merge(ITextRegion other)
- Specified by:
merge in interface ITextRegion
contains
public boolean contains(ITextRegion other)
- Specified by:
contains in interface ITextRegion
contains
public boolean contains(int offset)
- Specified by:
contains in interface ITextRegion
equals
public boolean equals(@Nullable
java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object