Class GeneratedKlumBuilder<M>
java.lang.Object
groovy.lang.GroovyObjectSupport
com.blackbuild.klum.ast.runtime.internal.InternalKlumBuilder<M>
com.blackbuild.klum.ast.runtime.generated.GeneratedKlumBuilder<M>
- Type Parameters:
M- the completed model type
- All Implemented Interfaces:
KlumBuilder<M>,groovy.lang.GroovyObject,Serializable
Generated-code linkage base for Builder implementations emitted by the DSL transformation.
This type is not a handwritten client API, mutable Builder extension point, or Builder-phase
SPI. Generated Builders retain their model-package Foo_DSL.Builder contracts; this base
only keeps their bytecode independent of the runtime's internal package.
- See Also:
-
Field Summary
Fields inherited from class com.blackbuild.klum.ast.runtime.internal.InternalKlumBuilder
ADD_ELEMENTS_FROM_SCRIPTS_TO_COLLECTION, ADD_ELEMENTS_FROM_SCRIPTS_TO_MAP, ADD_NEW_DSL_ELEMENT_TO_COLLECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Object$addNewDslElementToCollection(Map<String, Object> namedParams, String collectionName, KlumFactory.BuilderFactoryProvider<?, ?> factory, String key, groovy.lang.Closure<?> body) protected final <T> T$addNewDslElementToCollection(Map<String, Object> namedParams, String collectionName, Class<? extends T> type, Boolean explicitType, String key, groovy.lang.Closure<T> body) protected final Object$addNewDslElementToMap(Map<String, Object> namedParams, String mapName, KlumFactory.BuilderFactoryProvider<?, ?> factory, String key, groovy.lang.Closure<?> body) protected final <T> T$addNewDslElementToMap(Map<String, Object> namedParams, String mapName, Class<? extends T> type, Boolean explicitType, String key, groovy.lang.Closure<T> body) protected final void$assignMaterializedRelationship(String fieldName) Internal Builder hook that assigns one completed relationship without exposing a model mutator.protected voidAssigns relationship fields after every object in the graph was allocated.protected final void$copyFromRecipe(Object template) protected final Object$createSingleChild(Map<String, Object> namedParams, String fieldOrMethodName, KlumFactory.BuilderFactoryProvider<?, ?> factory, String key, groovy.lang.Closure<?> body) protected final <T> T$createSingleChild(Map<String, Object> namedParams, String fieldOrMethodName, Class<T> type, Boolean explicitType, String key, groovy.lang.Closure<T> body) protected final void$scheduleApplyLater(KlumPhase phase, groovy.lang.Closure<?> closure) protected final void$scheduleApplyLater(groovy.lang.Closure<?> closure) protected final void$scheduleApplyLater(Integer number, groovy.lang.Closure<?> closure) protected final <T> T$setSingleField(String fieldOrMethodName, T value) voidapplyLater(KlumPhase phase, groovy.lang.Closure<?> closure) voidapplyLater(groovy.lang.Closure<?> closure) voidapplyLater(Integer number, groovy.lang.Closure<?> closure) Methods inherited from class com.blackbuild.klum.ast.runtime.internal.InternalKlumBuilder
$attachConstructionSession, $completeConstructionSession, $createCompanion, $isInActiveConstructionSession, $materializeRelationship, $modelImplementationType, $snapshotField, addElementsFromScriptsToCollection, addElementsFromScriptsToMap, addElementsToCollection, addElementsToCollection, addElementsToMap, addElementsToMap, addElementsToMap, addElementToCollection, addElementToCollectionViaConverter, addElementToMap, addElementToMapViaConverter, addNewDslElementToCollection, addNewDslElementToCollection, addNewDslElementToMap, addNewDslElementToMap, addProjectedBuildersFromCollectionToCollection, addProjectedBuildersFromCollectionToMap, addProjectedBuildersFromMapToCollection, addProjectedBuildersFromMapToMap, apply, apply, apply, applyOnly, cleanup, copyFrom, copyFromRecipe, copyFromTemplate, createSingleChild, createSingleChild, executeApplyLaterClosures, getBreadcrumbPath, getCompletedModel, getCurrentTemplates, getField, getInstanceAttribute, getInstanceAttributeOrGetter, getInstanceProperty, getModelField, getModelPath, getModelType, getNullableKey, getOwners, getSingleOwner, increaseBreadcrumbQuantifier, isSealed, isTemplate, link, markAsTemplate, materializeTemplateForImport, resolveKeyForFieldFromAnnotation, scheduleApplyLater, scheduleApplyLater, scheduleApplyLater, sealTo, setBreadcrumbPath, setCurrentTemplates, setInstanceAttribute, setModelPath, setSingleField, setSingleFieldViaConverterMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Constructor Details
-
GeneratedKlumBuilder
-
-
Method Details
-
$assignRelationships
protected void $assignRelationships()Description copied from class:InternalKlumBuilderAssigns relationship fields after every object in the graph was allocated.- Overrides:
$assignRelationshipsin classInternalKlumBuilder<M>
-
$copyFromRecipe
-
$setSingleField
-
$createSingleChild
-
$createSingleChild
-
$addNewDslElementToCollection
-
$addNewDslElementToCollection
-
$addNewDslElementToMap
-
$addNewDslElementToMap
-
$assignMaterializedRelationship
Description copied from class:InternalKlumBuilderInternal Builder hook that assigns one completed relationship without exposing a model mutator.- Overrides:
$assignMaterializedRelationshipin classInternalKlumBuilder<M>
-
$scheduleApplyLater
protected final void $scheduleApplyLater(groovy.lang.Closure<?> closure) -
$scheduleApplyLater
-
$scheduleApplyLater
-
applyLater
public void applyLater(groovy.lang.Closure<?> closure) - Overrides:
applyLaterin classInternalKlumBuilder<M>
-
applyLater
- Overrides:
applyLaterin classInternalKlumBuilder<M>
-
applyLater
- Overrides:
applyLaterin classInternalKlumBuilder<M>
-