Interface Indenter

    • Method Detail

      • indentTag

        void indentTag​(java.lang.Appendable a,
                       int innerDepth,
                       int outerDepth,
                       Indenter.TagIndentSpot spot,
                       java.lang.String tag,
                       MarkupBuilder.TagClosingPolicy p,
                       boolean empty)
                throws java.io.IOException
        Called by the builder to provide whitespace decoration. The arguments provides context of what tag, kind of tag and closing policy etc.

        EXPERIMENTAL MAY CHANGE

        Parameters:
        a - writer like object where indenting decoration is to be applied.
        innerDepth - current indent depth inside the current builder.
        outerDepth - starting depth based on the outside builder if there is one. Usually this is zero.
        spot - current position that white space is to be applied.
        tag - the tag to be indented, not null.
        p - closing policy for the tag to be indented.
        empty - if the tag is empty.
        Throws:
        java.io.IOException
        See Also:
        MarkupBuilder.indent(Indenter)