IOValue

sealed class IOValue : Value

Functions

Link copied to clipboard
override fun toDocument(): Document

Returns the pretty text representation of this object.

Properties

Link copied to clipboard
abstract val type: ValueType

The type of the value.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

Like joined but using commas as separators and enclosed in /* and */.

Link copied to clipboard

Concatenates this and other with a line break in between.

operator fun PrettyPrintable.div(other: String): Document

Convenience method. See plus.

Link copied to clipboard

Tries laying out this document into a single line by removing the contained Document.lineBreaks (and replacing them with spaces); if this does not fit the page, the document is laid out without any changes. This function is the key to layouts that adapt to available space nicely.

Link copied to clipboard
fun PrettyPrintable.nested(indentationChange: Int = 4): Document

Returns a new document that is this with the nesting level (indentation after newlines) increased by indentationChange. Negative values for indentationChange are allowed, and decrease the nesting level accordingly.

Link copied to clipboard

Concatenates this and other.

operator fun PrettyPrintable.plus(other: String): Document

Convenience method that automatically converts other to a Document.

Link copied to clipboard

Returns a new document that is this with style applied.

Link copied to clipboard

Concatenates this and other with a space in between.

operator fun PrettyPrintable.times(other: String): Document

Convenience method. See plus.