public class HiddenRegionReplacer extends java.lang.Object implements ITextReplacer
GET_REGION
Constructor and Description |
---|
HiddenRegionReplacer(IHiddenRegion region,
IHiddenRegionFormatting formatting) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyHiddenRegionFormatting(java.util.List<ITextReplacer> replacers)
This method is when we have multiple TextReplacers for this HiddenRegion because the HiddenRegion contains
comments.
|
ITextReplacerContext |
createReplacements(ITextReplacerContext context)
Creates the real replacements for this region.
|
protected java.util.List<ITextReplacer> |
createReplacers(AbstractFormatter2 formatter) |
protected WhitespaceReplacer |
findWhitespaceThatSeparatesSemanticRegions(java.util.List<ITextReplacer> replacers) |
IHiddenRegionFormatting |
getFormatting() |
IHiddenRegion |
getRegion()
The region this replace is responsible for.
|
java.lang.String |
toString() |
public HiddenRegionReplacer(IHiddenRegion region, IHiddenRegionFormatting formatting)
protected void applyHiddenRegionFormatting(java.util.List<ITextReplacer> replacers)
formatting
to the WhitespaceReplacer
that
surround the comment.public ITextReplacerContext createReplacements(ITextReplacerContext context)
ITextReplacer
createReplacements
in interface ITextReplacer
protected java.util.List<ITextReplacer> createReplacers(AbstractFormatter2 formatter)
protected WhitespaceReplacer findWhitespaceThatSeparatesSemanticRegions(java.util.List<ITextReplacer> replacers)
public IHiddenRegionFormatting getFormatting()
public IHiddenRegion getRegion()
ITextReplacer
getRegion
in interface ITextReplacer
public java.lang.String toString()
toString
in class java.lang.Object