Class AbstractTextReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.AbstractTextReplacer
-
- All Implemented Interfaces:
ITextReplacer
- Direct Known Subclasses:
ConditionalReplacer
public abstract class AbstractTextReplacer extends java.lang.Object implements ITextReplacer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
GET_REGION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextReplacer(IFormattableDocument document, ITextSegment region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFormattableDocument
getDocument()
ITextSegment
getRegion()
The region this replace is responsible for.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
createReplacements
-
-
-
-
Constructor Detail
-
AbstractTextReplacer
protected AbstractTextReplacer(IFormattableDocument document, ITextSegment region)
-
-
Method Detail
-
getDocument
public IFormattableDocument getDocument()
-
getRegion
public ITextSegment getRegion()
Description copied from interface:ITextReplacer
The region this replace is responsible for. All text replacements create by this replacer must be inside this region.- Specified by:
getRegion
in interfaceITextReplacer
-
-