org.eclipse.xtext.parser.impl
Class Range
java.lang.Object
org.eclipse.xtext.parser.impl.Range
public class Range
- extends java.lang.Object
A mutable (!) range object.
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Range
public Range(INode node)
Range
public Range(int fromOffset,
int endOffset)
- Parameters:
fromOffset
- the start offset (inclusive).endOffset
- the end offset (exclusive).
merge
public void merge(INode node)
merge
public void merge(int fromOffset,
int endOffset)
getOffset
public int getOffset()
setOffset
public void setOffset(int fromOffset)
getEndOffset
public int getEndOffset()
setEndOffset
public void setEndOffset(int endOffset)
getLength
public int getLength()
mergeAllSyntaxErrors
public void mergeAllSyntaxErrors(INode node)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object