public interface ITextReplacer
A TextReplacer is responsible for a text region inside a IFormattableDocument and
produces replacements for that region.
The IFormattableDocument ensures that replacers are executed in the correct order, i.e. from the beginning of
the document to the end of the document.
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<ITextReplacer,ITextSegment> |
GET_REGION
A function that maps a given replacer to the region that it replaces.
|
| Modifier and Type | Method and Description |
|---|---|
ITextReplacerContext |
createReplacements(ITextReplacerContext context)
Creates the real replacements for this region.
|
ITextSegment |
getRegion()
The region this replace is responsible for.
|
static final com.google.common.base.Function<ITextReplacer,ITextSegment> GET_REGION
ITextSegment getRegion()
ITextReplacerContext createReplacements(ITextReplacerContext context)