Template

Properties

Link copied to clipboard
val Entity.Type.fieldAccess: EntityResolution
Link copied to clipboard
val Entity.Type.instantiations: EntityResolution
Link copied to clipboard
val Entity.Type.invocations: EntityResolution

Functions

Link copied to clipboard
fun classes(f: Classes.() -> Unit)
fun classes(label: String?, f: Classes.() -> Unit)

iterates all classes

Link copied to clipboard
fun classesOf(entity: Entity.Type, f: Classes.(Entity.Type) -> Unit)
fun classesOf(label: String?, entity: Entity.Type, f: Classes.(Entity.Type) -> Unit)

iterates class elements of registered entity type

Link copied to clipboard
fun elementsOf(entity: Entity.Type, f: Elements.(Entity.Type) -> Unit)
fun elementsOf(label: String?, entity: Entity.Type, f: Elements.(Entity.Type) -> Unit)

iterates "scope-erased" elements, useful for property tagging entities.

Link copied to clipboard
fun fieldsOf(entity: Entity.Type, f: Fields.(Entity.Type) -> Unit)
fun fieldsOf(label: String?, entity: Entity.Type, f: Fields.(Entity.Type) -> Unit)

iterates field elements of registered entity type

Link copied to clipboard
fun include(template: Action<Unit, Unit>)

Includes another template by copying it into this template.

Link copied to clipboard
fun methodsOf(entity: Entity.Type, f: Methods.(Entity.Type) -> Unit)
fun methodsOf(label: String?, entity: Entity.Type, f: Methods.(Entity.Type) -> Unit)

iterates method elements of registered entity type

Link copied to clipboard
fun scope(label: String, f: Template.() -> Unit)
fun scope(label: String, op: ScopeEntityPredicate, entity: Entity.Type, f: Template.() -> Unit)
Link copied to clipboard
operator fun Entity.Type.set(key: String, rhs: EntityResolution)

associates all entities with rhs

Link copied to clipboard
fun synthesize(label: String = "", f: Synthesize.() -> Unit)

Stub missing classes and register them with entities.