TextBuilder type (joe)


TextBuilder is a native type similar to a Java StringBuilder; it's used for building up text strings a little at a time.

Initializer

Methods

Joe classes can extend the TextBuilder type.

TextBuilder Initializer


TextBuilder() → TextBuilder

Creates an empty TextBuilder.

Methods


textBuilder.append()


textBuilder.append(value) → this

Adds the value to the buffer.

textBuilder.clear()


textBuilder.clear() → this

Clears the buffer.

textBuilder.print()


textBuilder.print(value) → this

Adds the value to the buffer.

textBuilder.printf()


textBuilder.printf(fmt, [values...])

Formats its arguments given the fmt string, and appends the result to the buffer. See String Formatting for the format string syntax.

textBuilder.println()


textBuilder.println(value) → this

Adds the value to the buffer, followed by a new line.

textBuilder.toString()


textBuilder.toString() → String

Returns the string.