Package org.eclipse.xtext.util
Class ReplaceRegion
- java.lang.Object
-
- org.eclipse.xtext.util.ReplaceRegion
-
public class ReplaceRegion extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReplaceRegion(int offset, int length, java.lang.String text)
ReplaceRegion(ITextRegion region, java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTo(java.lang.StringBuilder builder)
boolean
equals(java.lang.Object object)
int
getEndOffset()
int
getLength()
int
getOffset()
java.lang.String
getText()
int
hashCode()
ReplaceRegion
shiftBy(int offset)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ReplaceRegion
public ReplaceRegion(ITextRegion region, java.lang.String text)
-
ReplaceRegion
public ReplaceRegion(int offset, int length, java.lang.String text)
-
-
Method Detail
-
getOffset
public int getOffset()
-
getLength
public int getLength()
-
getEndOffset
public int getEndOffset()
- Returns:
- the end offset of the replace region (exclusive).
-
getText
public java.lang.String getText()
-
shiftBy
public ReplaceRegion shiftBy(int offset)
-
applyTo
public void applyTo(java.lang.StringBuilder builder)
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-