table

fun TomlArrayBuilder.table(elementAnnotations: List<Annotation> = emptyList(), block: TomlTableBuilder.() -> Unit)(source)
fun TomlArrayBuilder.table(vararg elementAnnotations: Annotation, block: TomlTableBuilder.() -> Unit)(source)

Adds a TomlTable built with block to this array and annotates it with elementAnnotations.


fun TomlTableBuilder.table(key: Any?, elementAnnotations: List<Annotation> = emptyList(), block: TomlTableBuilder.() -> Unit)(source)
fun TomlTableBuilder.table(key: Any?, vararg elementAnnotations: Annotation, block: TomlTableBuilder.() -> Unit)(source)

Associates a TomlTable built with block with primitive key and annotates the table with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.