Class GeneratedModelSupport

java.lang.Object
com.blackbuild.klum.ast.runtime.generated.GeneratedModelSupport

public final class GeneratedModelSupport extends Object
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 Details

    • $klum$requireMaterializationToken

      public static void $klum$requireMaterializationToken(GeneratedMaterializationToken token)
      Verifies the opaque authority supplied to a generated model constructor.
    • $klum$snapshotField

      public static Object $klum$snapshotField(GeneratedKlumBuilder<?> builder, String fieldName)
      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.