CodeBuilder.put

Places str into the buffer.

put("text", Indent.open); will indent "text" at the current level and future code will be indented one level.

put("other", Indent.close); will indent "other" at one less the current indentation.

put("}{", Indent.close | Indent.open) will indent "}{" at one less the current indentation and continue indentation for future code.

rawPut provides the same operations but does not include the current indentation level.

To place indentation but no other code use put("");

To reduce indentation without inserting code use put(Indent.close);

Meta