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 called when we have multiple TextReplacers for this HiddenRegion because the HiddenRegion contains
comments.
|
protected void |
applyIndentation(java.util.List<ITextReplacer> replacers,
IHiddenRegionFormatting separator) |
protected void |
applyPriorityAndDefaultFormatting(java.util.List<ITextReplacer> replacers,
IHiddenRegionFormatting separator) |
protected void |
applySeparatorConfiguration(IHiddenRegionFormatting separator)
Apply newline and space configuration to the first whitespace region that follows or contains a linewrap.
|
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.
|
protected void |
introduceNewlinesAroundMLComments(java.util.List<ITextReplacer> replacers) |
java.lang.String |
toString() |
public HiddenRegionReplacer(IHiddenRegion region, IHiddenRegionFormatting formatting)
protected void applyHiddenRegionFormatting(java.util.List<ITextReplacer> replacers)
formatting to the WhitespaceReplacer that
surrounds the comment.protected void applyIndentation(java.util.List<ITextReplacer> replacers, IHiddenRegionFormatting separator)
protected void applySeparatorConfiguration(IHiddenRegionFormatting separator)
protected void applyPriorityAndDefaultFormatting(java.util.List<ITextReplacer> replacers, IHiddenRegionFormatting separator)
protected void introduceNewlinesAroundMLComments(java.util.List<ITextReplacer> replacers)
public ITextReplacerContext createReplacements(ITextReplacerContext context)
ITextReplacercreateReplacements in interface ITextReplacerprotected java.util.List<ITextReplacer> createReplacers(AbstractFormatter2 formatter)
protected WhitespaceReplacer findWhitespaceThatSeparatesSemanticRegions(java.util.List<ITextReplacer> replacers)
public IHiddenRegionFormatting getFormatting()
public IHiddenRegion getRegion()
ITextReplacergetRegion in interface ITextReplacerpublic java.lang.String toString()
toString in class java.lang.Object