org.eclipse.xtext.util
Class TextRegion

java.lang.Object
  extended by org.eclipse.xtext.util.TextRegion
All Implemented Interfaces:
ITextRegion

public class TextRegion
extends java.lang.Object
implements ITextRegion


Field Summary
 
Fields inherited from interface org.eclipse.xtext.util.ITextRegion
EMPTY_REGION
 
Constructor Summary
TextRegion(int offset, int length)
           
 
Method Summary
 boolean contains(int offset)
           
 boolean contains(ITextRegion other)
           
 boolean equals(java.lang.Object obj)
           
 int getLength()
           
 int getOffset()
           
 int hashCode()
           
 ITextRegion merge(ITextRegion other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextRegion

public TextRegion(int offset,
                  int length)
Method Detail

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(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