Class DelegateMapValueClassSpecBuilder
-
- All Implemented Interfaces:
-
io.toolisticon.kotlin.generation.Builder,io.toolisticon.kotlin.generation.BuilderSupplier,io.toolisticon.kotlin.generation.builder.DelegatingBuilder,io.toolisticon.kotlin.generation.builder.KotlinAnnotatableBuilder,io.toolisticon.kotlin.generation.builder.KotlinAnnotatableDocumentableModifiableBuilder,io.toolisticon.kotlin.generation.builder.KotlinDocumentableBuilder,io.toolisticon.kotlin.generation.builder.KotlinGeneratorTypeSpecBuilder,io.toolisticon.kotlin.generation.builder.KotlinModifiableBuilder,io.toolisticon.kotlin.generation.builder.KotlinSuperInterfaceSupport,io.toolisticon.kotlin.generation.builder.KotlinTaggableBuilder,io.toolisticon.kotlin.generation.poet.PoetSpecSupplier,io.toolisticon.kotlin.generation.poet.TypeSpecSupplier,io.toolisticon.kotlin.generation.spec.KotlinGeneratorSpecSupplier,java.util.function.Supplier
public final class DelegateMapValueClassSpecBuilder implements KotlinGeneratorTypeSpecBuilder<DelegateMapValueClassSpecBuilder, KotlinValueClassSpec>, KotlinAnnotatableDocumentableModifiableBuilder<DelegateMapValueClassSpecBuilder>, KotlinSuperInterfaceSupport<DelegateMapValueClassSpecBuilder>
Generator that wraps a map holding given key/valueType in a value class and delegates the map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDelegateMapValueClassSpecBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static DelegateMapValueClassSpecBuilder.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>propertyName(String propertyName)Modify the default property name. KotlinValueClassSpecbuild()<Error class: unknown class>addAnnotation(KotlinAnnotationSpecSupplier spec)Implementing builder needs to store the spec provided and apply it to the build. <Error class: unknown class>addKdoc(KDoc kdoc)Implementing builders have to add this to their build. <Error class: unknown class>addModifiers(KModifier modifiers)Add modifiers. <Error class: unknown class>addSuperinterface(TypeName superinterface, String constructorParameter)<Error class: unknown class>addSuperinterface(TypeName superinterface, CodeBlock delegate)<Error class: unknown class>builder(Function1<TypeSpec.Builder, Unit> block)<Error class: unknown class>addTag(KClass<?> type, Object tag)-
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinAnnotatableBuilder
addAnnotation, addAnnotation, addAnnotation, addAnnotation -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinDocumentableBuilder
addKdoc, addKdoc, addKdoc -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinModifiableBuilder
addModifiers, makeAbstract, makeActual, makeAnnotation, makeCompanion, makeConst, makeCrossinline, makeEnum, makeExpect, makeExternal, makeFinal, makeInfix, makeInline, makeInner, makeInternal, makeLateinit, makeNoinline, makeOpen, makeOperator, makeOut, makeOverride, makePrivate, makeProtected, makePublic, makeReified, makeSealed, makeSuspend, makeTailrec, makeVararg -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinSuperInterfaceSupport
addSuperinterface, addSuperinterface, addSuperinterfaces -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinTaggableBuilder
addTag, removeTag -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinGeneratorTypeSpecBuilder
get, spec -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
propertyName
final <Error class: unknown class> propertyName(String propertyName)
Modify the default property name.
-
build
KotlinValueClassSpec build()
-
addAnnotation
<Error class: unknown class> addAnnotation(KotlinAnnotationSpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build.
-
addKdoc
<Error class: unknown class> addKdoc(KDoc kdoc)
Implementing builders have to add this to their build.
-
addModifiers
<Error class: unknown class> addModifiers(KModifier modifiers)
Add modifiers.
Implementing builders have to add this to their build.
-
addSuperinterface
<Error class: unknown class> addSuperinterface(TypeName superinterface, String constructorParameter)
-
addSuperinterface
<Error class: unknown class> addSuperinterface(TypeName superinterface, CodeBlock delegate)
-
-
-
-