Class GeneratedModelSupport
java.lang.Object
com.blackbuild.klum.ast.runtime.generated.GeneratedModelSupport
Generated-code linkage for model Materialization and opaque completed-model state.
The reserved hooks are emitted only by the DSL transformation. They preserve the internal construction session, allocation, and validation ordering without exposing companion or Builder mutation operations to clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratedObjectState$klum$createState(GeneratedKlumBuilder<?> builder, groovy.lang.GroovyObject model) Creates the opaque state retained by a generated root model.static <M> M$klum$instantiate(GeneratedKlumBuilder<?> builder, Class<? extends M> implementationType) Allocates a generated model through its synthetic Materialization constructor.static voidVerifies the opaque authority supplied to a generated model constructor.static Object$klum$snapshotField(GeneratedKlumBuilder<?> builder, String fieldName) Snapshots one non-relationship field while a generated model is materialized.
-
Method Details
-
$klum$requireMaterializationToken
Verifies the opaque authority supplied to a generated model constructor. -
$klum$snapshotField
Snapshots one non-relationship field while a generated model is materialized. -
$klum$createState
public static GeneratedObjectState $klum$createState(GeneratedKlumBuilder<?> builder, groovy.lang.GroovyObject model) Creates the opaque state retained by a generated root model. -
$klum$instantiate
public static <M> M $klum$instantiate(GeneratedKlumBuilder<?> builder, Class<? extends M> implementationType) Allocates a generated model through its synthetic Materialization constructor.
-