append

public void append(CodeLines appended)

Appends another code lines to this code.

If the appended lines have different indent level, then the level of appended lines is adjusted to match the level of the current lines.

The indent level is adjusted by the difference of the levels.

Parameters

appended

the code to append


public void append(Snippet snippet)

Appends the lines of the snippet.


public void append(String codeLine)

Appends the line of code on the current indent level.

Parameters

codeLine

the code to add


public void append(CodeLine line)

Appends the code line and indents it to the current indent level.

Parameters

line

the line to append