EntityRegistrar

interface EntityRegistrar<ELEMENT : Element>(source)

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun entity(id: Entity.Type, vararg properties: Property<ELEMENT>)
open fun entity(id: Entity.Type, labelFormatter: LabelFormatter, vararg properties: Property<ELEMENT>)

register entity

open fun entity(id: Entity.Type, errorIfExists: Boolean = true, vararg properties: Property<ELEMENT>)

new entity with label inferred from introspected bytecode element

abstract fun entity(id: Entity.Type, labelFormatter: LabelFormatter, errorIfExists: Boolean = true, vararg properties: Property<ELEMENT>)

new entity with label from labelFormatter

Link copied to clipboard
open fun label(pattern: String, vararg ops: TextTransformer): LabelFormatter

Set the entity label from a pattern, replacing any ${} variables inside pattern with values from Entity.properties.

Link copied to clipboard
abstract operator fun Entity.Type.set(key: String, children: Entity.Type)

This entity tracks children under the label denoted by key.