Method Detail

render

The implementation of this method may invoke `out.accept()` multiple times.

Indentation

The `indent` parameter indicates the indentation level of this piece.

If `indent<0`, indentation should be suppressed within this piece.
If this is a parent piece, it should not introduce indentations around its children,
and it should pass negative `indent` to the children's render() methods as well.

If `indent>=0`, this piece is indented.
If this is a parent piece, it may introduce proper indentations around each of its children,
and increment `indent` by 1 when invoking the children's render() methods.
The implementation of this method does not need to add indentations
before/after this piece (it's taken care of by the parent).
Use indent(int) method to create an indentation string.

Do not introduce indentation between two inline pieces, see isBlock().

Usually `indent=0` is passed to the root piece.
Pass `indent=-1` to the root piece to suppress all indentations.

The `indent` parameter may also be simply ignored by the implementation,
since indentation is not semantically important.