Builder
class Builder : Taggable.Builder<TypeSpec.Builder> , OriginatingElementsHolder.Builder<TypeSpec.Builder>
Content copied to clipboard
Functions
add Annotation
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Content copied to clipboard
add Annotations
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): TypeSpec.Builder
Content copied to clipboard
add Enum Constant
Link copied to clipboard
fun addEnumConstant(name: String, typeSpec: TypeSpec = anonymousClassBuilder().build()): TypeSpec.Builder
Content copied to clipboard
add Function
Link copied to clipboard
add Functions
Link copied to clipboard
add Initializer Block
Link copied to clipboard
add Kdoc
Link copied to clipboard
add Modifiers
Link copied to clipboard
add Originating Element
Link copied to clipboard
open fun addOriginatingElement(originatingElement: Element): TypeSpec.Builder
Content copied to clipboard
Adds an originatingElement to this type's list of originating elements.
add Properties
Link copied to clipboard
fun addProperties(propertySpecs: Iterable<PropertySpec>): TypeSpec.Builder
Content copied to clipboard
add Property
Link copied to clipboard
fun addProperty(name: String, type: TypeName, vararg modifiers: KModifier): TypeSpec.Builder
Content copied to clipboard
fun addProperty(name: String, type: TypeName, modifiers: Iterable<KModifier>): TypeSpec.Builder
Content copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Content copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Content copied to clipboard
fun addProperty(name: String, type: KClass<*>, vararg modifiers: KModifier): TypeSpec.Builder
Content copied to clipboard
fun addProperty(name: String, type: KClass<*>, modifiers: Iterable<KModifier>): TypeSpec.Builder
Content copied to clipboard
add Superclass Constructor Parameter
Link copied to clipboard
fun addSuperclassConstructorParameter(codeBlock: CodeBlock): TypeSpec.Builder
Content copied to clipboard
fun addSuperclassConstructorParameter(format: String, vararg args: Any): TypeSpec.Builder
Content copied to clipboard
add Superinterface
Link copied to clipboard
fun addSuperinterface(superinterface: TypeName, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
Content copied to clipboard
fun addSuperinterface(superinterface: TypeName, constructorParameter: String): TypeSpec.Builder
Content copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Content copied to clipboard
fun addSuperinterface(superinterface: KClass<*>, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
Content copied to clipboard
fun addSuperinterface(superinterface: KClass<*>, constructorParameterName: String): TypeSpec.Builder
Content copied to clipboard
add Superinterfaces
Link copied to clipboard
fun addSuperinterfaces(superinterfaces: Iterable<TypeName>): TypeSpec.Builder
Content copied to clipboard
add Type
Link copied to clipboard
add Types
Link copied to clipboard
add Type Variable
Link copied to clipboard
add Type Variables
Link copied to clipboard
fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): TypeSpec.Builder
Content copied to clipboard
primary Constructor
Link copied to clipboard
superclass
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead." )
Content copied to clipboard
tag
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.
Properties
annotationSpecs
Link copied to clipboard
enumConstants
Link copied to clipboard
funSpecs
Link copied to clipboard
initializerIndex
Link copied to clipboard
modifiers
Link copied to clipboard
originatingElements
Link copied to clipboard
propertySpecs
Link copied to clipboard
superclassConstructorParameters
Link copied to clipboard
superinterfaces
Link copied to clipboard
tags
Link copied to clipboard
typeSpecs
Link copied to clipboard
typeVariables
Link copied to clipboard
Extensions
jvm Inline
Link copied to clipboard
jvm Record
Link copied to clipboard
jvm Suppress Wildcards
Link copied to clipboard
fun TypeSpec.Builder.jvmSuppressWildcards(suppress: Boolean = true): TypeSpec.Builder
Content copied to clipboard
tag
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.