Class DelegateListValueClassSpecBuilder
-
- 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 DelegateListValueClassSpecBuilder implements KotlinGeneratorTypeSpecBuilder<DelegateListValueClassSpecBuilder, KotlinValueClassSpec>, KotlinAnnotatableDocumentableModifiableBuilder<DelegateListValueClassSpecBuilder>, KotlinSuperInterfaceSupport<DelegateListValueClassSpecBuilder>
Generator that wraps a list holding given elementType in a value class and delegates the list.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DelegateListValueClassSpecBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static DelegateListValueClassSpecBuilder.Companion
Companion
-
Method Summary
Modifier and Type Method Description final DelegateListValueClassSpecBuilder
propertyName(String propertyName)
Modify the default property name. KotlinValueClassSpec
build()
DelegateListValueClassSpecBuilder
addAnnotation(KotlinAnnotationSpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build. DelegateListValueClassSpecBuilder
addKdoc(KDoc kdoc)
Implementing builders have to add this to their build. DelegateListValueClassSpecBuilder
addModifiers(KModifier modifiers)
Add modifiers. DelegateListValueClassSpecBuilder
addSuperinterface(TypeName superinterface, String constructorParameter)
DelegateListValueClassSpecBuilder
addSuperinterface(TypeName superinterface, CodeBlock delegate)
DelegateListValueClassSpecBuilder
addTag(KClass<?> type, Object tag)
DelegateListValueClassSpecBuilder
builder(Function1<TypeSpec.Builder, Unit> block)
-
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, makePrivate
-
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 DelegateListValueClassSpecBuilder propertyName(String propertyName)
Modify the default property name.
-
build
KotlinValueClassSpec build()
-
addAnnotation
DelegateListValueClassSpecBuilder addAnnotation(KotlinAnnotationSpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build.
-
addKdoc
DelegateListValueClassSpecBuilder addKdoc(KDoc kdoc)
Implementing builders have to add this to their build.
-
addModifiers
DelegateListValueClassSpecBuilder addModifiers(KModifier modifiers)
Add modifiers.
Implementing builders have to add this to their build.
-
addSuperinterface
DelegateListValueClassSpecBuilder addSuperinterface(TypeName superinterface, String constructorParameter)
-
addSuperinterface
DelegateListValueClassSpecBuilder addSuperinterface(TypeName superinterface, CodeBlock delegate)
-
addTag
DelegateListValueClassSpecBuilder addTag(KClass<?> type, Object tag)
-
builder
DelegateListValueClassSpecBuilder builder(Function1<TypeSpec.Builder, Unit> block)
-
-
-
-