Synthesize

This scope is used for stubbing classes not part of the input classes.

Functions

Link copied to clipboard
fun entity(id: Entity.Type, type: Type, labelFormatter: LabelFormatter = LabelFormatter.FromElement)

Stub missing class node for type and register it to an entity

Link copied to clipboard
fun inject(cls: Class<*>)

fun inject(classBytes: ByteArray)

Embeds the provided class into template and adds it to the set of input classes. It takes a ByteArray representation of a class file as an argument, referred to as classBytes, and embeds this class into the current System Model Template.

fun inject(cls: KClass<*>)

Embeds the provided class into template and adds it to the set of input classes. It takes a class as an argument, referred to as cls, and embeds this class into the current System Model Template.

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

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