An immutable, indentation-aware accumulator of source lines.
Ported from ScalaPB's printer of the same name. Generated code is built by threading one of these through the generators, which keeps indentation out of every string literal and makes a generator a plain FunctionalPrinter => FunctionalPrinter.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Adds lines at the current indent level.
Adds lines at the current indent level.
Embedded newlines are split, so a multi-line string literal indents as a block rather than leaving its continuation lines at column zero.
Attributes
As addWithDelimiter, but the delimiter goes after each group's last line.
Adds lines with delimiter after every line but the last: for argument lists.
Adds lines with delimiter after every line but the last: for argument lists.
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product