Builder
class Builder : Taggable.Builder<TypeSpec.Builder> , OriginatingElementsHolder.Builder<TypeSpec.Builder>
Content 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." )
Content copied to clipboard
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): TypeSpec.Builder
Content copied to clipboard
Link copied to clipboard
fun addEnumConstant(name: String, typeSpec: TypeSpec = anonymousClassBuilder().build()): TypeSpec.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
fun addProperties(propertySpecs: Iterable<PropertySpec>): TypeSpec.Builder
Content copied to clipboard
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
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
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
Link copied to clipboard
fun addSuperinterfaces(superinterfaces: Iterable<TypeName>): TypeSpec.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): TypeSpec.Builder
Content 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." )
Content copied to clipboard
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
Extensions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TypeSpec.Builder.jvmSuppressWildcards(suppress: Boolean = true): TypeSpec.Builder
Content copied to clipboard
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.