TomlTable

@Serializable(with = TomlTableSerializer::class)
class TomlTable : TomlElement, Map<String, TomlElement> (source)

Represents table in TOML, whose keys are strings and values are TomlElements.

This type delegates everything to content, thus all the functions from Map could be used.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The metadata attached to each entry.

Link copied to clipboard
open override val content: Map<String, TomlElement>

The content of this element.

Link copied to clipboard
open override val entries: Set<Map.Entry<String, TomlElement>>
Link copied to clipboard
open override val keys: Set<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: Collection<TomlElement>

Functions

Link copied to clipboard
fun TomlTable.allAnnotated(vararg annotations: Annotation): TomlTable

Annotates all the entries from this TomlTable with the same annotations.

Link copied to clipboard
fun TomlTable.annotated(vararg annotations: Pair<*, List<Annotation>>): TomlTable

Annotates this TomlTable with annotations.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: TomlElement): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(key: String): TomlElement?

operator fun get(key: Any?): TomlElement?

More convenient means than Map.get if this table is originally a map with primitive keys.

Link copied to clipboard
operator fun TomlTable.get(vararg keys: Any?): TomlElement?

Gets the element along the path constructed by keys.

Link copied to clipboard

Gets a TomlArray with key from this TomlTable.

Link copied to clipboard

Gets a TomlArray with key from this TomlTable. If the entry does not exist, or it is not a TomlArray, this returns null.

Link copied to clipboard

Gets a boolean with key from this TomlTable.

Link copied to clipboard

Gets a boolean with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a boolean, this returns null.

Link copied to clipboard

Gets a float (TOML float, which is Double) with key from this TomlTable.

Link copied to clipboard

Gets a float (TOML float, which is Double) with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a float, this returns null.

Link copied to clipboard

Gets an integer (TOML integer, which is Long) with key from this TomlTable.

Link copied to clipboard

Gets an integer (TOML integer, which is Long) with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to an integer, this returns null.

Link copied to clipboard

Gets a TomlLiteral with key from this TomlTable.

Link copied to clipboard

Gets a TomlLiteral with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalDate with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDate, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalDateTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDateTime, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalTime, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlOffsetDateTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlOffsetDateTime, this returns null.

Link copied to clipboard

Gets a string with key from this TomlTable.

Link copied to clipboard

Gets a string with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a string, this returns null.

Link copied to clipboard

Gets a TomlTable with key from this TomlTable.

Link copied to clipboard

Gets a TomlTable with key from this TomlTable. If the entry does not exist, or it is not a TomlTable, this returns null.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun toString(): String

The string representation of this element.

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