Class HiddenRegionReplacer

    • Method Detail

      • applyHiddenRegionFormatting

        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. It applies the formatting configuration from formatting to the WhitespaceReplacer that surrounds the comment.
      • applySeparatorConfiguration

        protected void applySeparatorConfiguration​(IHiddenRegionFormatting separator)
        Apply newline and space configuration to the first whitespace region that follows or contains a linewrap.
        Since:
        2.23
      • introduceNewlinesAroundMLComments

        protected void introduceNewlinesAroundMLComments​(java.util.List<ITextReplacer> replacers)
        Since:
        2.23
      • findWhitespaceThatSeparatesSemanticRegions

        protected WhitespaceReplacer findWhitespaceThatSeparatesSemanticRegions​(java.util.List<ITextReplacer> replacers)
      • getRegion

        public IHiddenRegion 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 interface ITextReplacer
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object