append

public final Unit append(String line, Boolean lastChild)(source)(source)
public final Unit append(String line)(source)(source)

Appends a line to the tree with indentation.

Parameters

line

The string to append

lastChild

Whether line is the last child of the parent node (for different formatting)