TomlElement

@Serializable(with = TomlElementSerializer::class)
sealed class TomlElement(source)

Represents anything in TOML, including and only including TomlNull, TomlLiteral, TomlArray, TomlTable.

Warning: Only use Toml to serialize/deserialize any sub-class.

Inheritors

Properties

Link copied to clipboard
abstract val content: Any?

The content of this TomlElement. Each subclass has its own implementation.

Functions

Link copied to clipboard
abstract override fun toString(): String

Gives a string representation of this TomlElement. Each subclass has its own implementation.

Link copied to clipboard

Convert this to TomlArray.

Link copied to clipboard

Convert this to TomlLiteral.

Link copied to clipboard

Convert this to TomlNull.

Link copied to clipboard

Convert this to TomlTable.