public class HiddenRegionReplacer extends Object implements ITextReplacer
GET_REGION| Constructor and Description |
|---|
HiddenRegionReplacer(IHiddenRegion region,
IHiddenRegionFormatting formatting) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyHiddenRegionFormatting(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 List<ITextReplacer> |
createReplacers(AbstractFormatter2 formatter) |
protected WhitespaceReplacer |
findWhitespaceThatSeparatesSemanticRegions(List<ITextReplacer> replacers) |
IHiddenRegionFormatting |
getFormatting() |
IHiddenRegion |
getRegion()
The region this replace is responsible for.
|
String |
toString() |
public HiddenRegionReplacer(IHiddenRegion region, IHiddenRegionFormatting formatting)
protected void applyHiddenRegionFormatting(List<ITextReplacer> replacers)
formatting to the WhitespaceReplacer that
surround the comment.public ITextReplacerContext createReplacements(ITextReplacerContext context)
ITextReplacercreateReplacements in interface ITextReplacerprotected List<ITextReplacer> createReplacers(AbstractFormatter2 formatter)
protected WhitespaceReplacer findWhitespaceThatSeparatesSemanticRegions(List<ITextReplacer> replacers)
public IHiddenRegionFormatting getFormatting()
public IHiddenRegion getRegion()
ITextReplacergetRegion in interface ITextReplacerCopyright © 2015. All Rights Reserved.