Builder
class Builder : Taggable.Builder<TypeSpec.Builder> , OriginatingElementsHolder.Builder<TypeSpec.Builder> , ContextReceivable.Builder<TypeSpec.Builder> , Annotatable.Builder<TypeSpec.Builder> , Documentable.Builder<TypeSpec.Builder> , TypeSpecHolder.Builder<TypeSpec.Builder> , MemberSpecHolder.Builder<TypeSpec.Builder>
Properties
Link copied to clipboard
Link copied to clipboard
Mutable map of the current originating elements this builder contains.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Mutable map of the current originating elements this builder contains.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Mutable map of the current tags this builder contains.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Link copied to clipboard
Link copied to clipboard
fun addEnumConstant(name: String, typeSpec: TypeSpec = anonymousClassBuilder().build()): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds an originatingElement to this type's list of originating elements.
Link copied to clipboard
Link copied to clipboard
open override fun addProperty(name: String, type: TypeName, vararg modifiers: KModifier): TypeSpec.Builder
open override fun addProperty(name: String, type: TypeName, modifiers: Iterable<KModifier>): TypeSpec.Builder
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
open override fun addProperty(name: String, type: KClass<*>, vararg modifiers: KModifier): TypeSpec.Builder
open override fun addProperty(name: String, type: KClass<*>, modifiers: Iterable<KModifier>): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
fun addSuperinterface(superinterface: TypeName, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
fun addSuperinterface(superinterface: KClass<*>, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
fun addSuperinterface(superinterface: KClass<*>, constructorParameterName: String): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds the given receiverTypes to this type's list of originating elements.
Adds the given receiverTypes to this type's list of originating elements.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Link copied to clipboard
Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null
to remove any existing tag assigned for type.
Link copied to clipboard
Attaches tag to the request using T as a key. Tags can be read from a request using Taggable.tag. Use null
to remove any existing tag assigned for T.