Class KotlinObjectSpecBuilder
-
- 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.KotlinContextReceivableBuilder,io.toolisticon.kotlin.generation.builder.KotlinDocumentableBuilder,io.toolisticon.kotlin.generation.builder.KotlinGeneratorTypeSpecBuilder,io.toolisticon.kotlin.generation.builder.KotlinMemberSpecHolderBuilder,io.toolisticon.kotlin.generation.builder.KotlinModifiableBuilder,io.toolisticon.kotlin.generation.builder.KotlinSuperInterfaceSupport,io.toolisticon.kotlin.generation.builder.KotlinTaggableBuilder,io.toolisticon.kotlin.generation.builder.KotlinTypeSpecHolderBuilder,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 KotlinObjectSpecBuilder implements KotlinGeneratorTypeSpecBuilder<KotlinObjectSpecBuilder, KotlinObjectSpec>, KotlinAnnotatableDocumentableModifiableBuilder<KotlinObjectSpecBuilder>, KotlinContextReceivableBuilder<KotlinObjectSpecBuilder>, KotlinMemberSpecHolderBuilder<KotlinObjectSpecBuilder>, KotlinSuperInterfaceSupport<KotlinObjectSpecBuilder>, KotlinTypeSpecHolderBuilder<KotlinObjectSpecBuilder>
Builder for KotlinObjectSpec.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classKotlinObjectSpecBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static KotlinObjectSpecBuilder.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final KotlinObjectSpecBuilderaddTypeVariable(TypeVariableName typeVariable)final KotlinObjectSpecBuilderprimaryConstructor(FunSpecSupplier primaryConstructor)final KotlinObjectSpecBuilderaddInitializerBlock(CodeBlock block)KotlinObjectSpecbuild()<Error class: unknown class>addAnnotation(KotlinAnnotationSpecSupplier spec)Implementing builder needs to store the spec provided and apply it to the build. KotlinObjectSpecBuildercontextReceivers(TypeName receiverTypes)<Error class: unknown class>addFunction(KotlinFunSpecSupplier funSpec)<Error class: unknown class>addKdoc(KDoc kdoc)Implementing builders have to add this to their build. KotlinObjectSpecBuilderaddModifiers(KModifier modifiers)Add modifiers. <Error class: unknown class>addProperty(KotlinPropertySpecSupplier propertySpec)KotlinObjectSpecBuilderaddSuperinterface(TypeName superinterface, String constructorParameter)KotlinObjectSpecBuilderaddSuperinterface(TypeName superinterface, CodeBlock delegate)KotlinObjectSpecBuilderaddType(TypeSpecSupplier typeSpec)Implementing builders must add this to their internal builder. KotlinObjectSpecBuilderaddTag(KClass<?> type, Object tag)KotlinObjectSpecBuilderbuilder(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.KotlinContextReceivableBuilder
contextReceivers -
Methods inherited from class io.toolisticon.kotlin.generation.builder.KotlinMemberSpecHolderBuilder
addFunction, addProperty, addProperty -
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.KotlinTypeSpecHolderBuilder
addType, addType, addType, addType, addType, addType, addType -
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
-
addTypeVariable
final KotlinObjectSpecBuilder addTypeVariable(TypeVariableName typeVariable)
-
primaryConstructor
final KotlinObjectSpecBuilder primaryConstructor(FunSpecSupplier primaryConstructor)
-
addInitializerBlock
final KotlinObjectSpecBuilder addInitializerBlock(CodeBlock block)
-
build
KotlinObjectSpec build()
-
addAnnotation
<Error class: unknown class> addAnnotation(KotlinAnnotationSpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build.
-
contextReceivers
KotlinObjectSpecBuilder contextReceivers(TypeName receiverTypes)
-
addFunction
<Error class: unknown class> addFunction(KotlinFunSpecSupplier funSpec)
-
addKdoc
<Error class: unknown class> addKdoc(KDoc kdoc)
Implementing builders have to add this to their build.
-
addModifiers
KotlinObjectSpecBuilder addModifiers(KModifier modifiers)
Add modifiers.
Implementing builders have to add this to their build.
-
addProperty
<Error class: unknown class> addProperty(KotlinPropertySpecSupplier propertySpec)
-
addSuperinterface
KotlinObjectSpecBuilder addSuperinterface(TypeName superinterface, String constructorParameter)
-
addSuperinterface
KotlinObjectSpecBuilder addSuperinterface(TypeName superinterface, CodeBlock delegate)
-
addType
KotlinObjectSpecBuilder addType(TypeSpecSupplier typeSpec)
Implementing builders must add this to their internal builder.
-
addTag
KotlinObjectSpecBuilder addTag(KClass<?> type, Object tag)
-
builder
KotlinObjectSpecBuilder builder(Function1<TypeSpec.Builder, Unit> block)
-
-
-
-