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
open override val kdoc: CodeBlock.Builder
Link copied to clipboard
Link copied to clipboard
open override val originatingElements: MutableList<<Error class: unknown class>>

Mutable map of the current originating elements this builder contains.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val tags: MutableMap<KClass<*>, Any>

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.")
open override fun addAnnotation(annotation: <Error class: unknown class><out <Error class: unknown class>>): TypeSpec.Builder
open override fun addAnnotation(annotationSpec: AnnotationSpec): TypeSpec.Builder
open override fun addAnnotation(annotation: ClassName): TypeSpec.Builder
open override fun addAnnotation(annotation: KClass<*>): TypeSpec.Builder
Link copied to clipboard
open override fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): TypeSpec.Builder
Link copied to clipboard
fun addEnumConstant(name: String, typeSpec: TypeSpec = anonymousClassBuilder().build()): TypeSpec.Builder
Link copied to clipboard
open override fun addFunction(funSpec: FunSpec): TypeSpec.Builder
Link copied to clipboard
open override fun addFunctions(funSpecs: Iterable<FunSpec>): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
open override fun addKdoc(block: CodeBlock): TypeSpec.Builder
open override fun addKdoc(format: String, vararg args: Any): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
open fun addOriginatingElement(originatingElement: <Error class: unknown class>): TypeSpec.Builder

Adds an originatingElement to this type's list of originating elements.

Link copied to clipboard
open override fun addProperties(propertySpecs: Iterable<PropertySpec>): TypeSpec.Builder
Link copied to clipboard
open override fun addProperty(propertySpec: PropertySpec): TypeSpec.Builder
@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: <Error class: unknown class>, vararg modifiers: KModifier): TypeSpec.Builder
@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: <Error class: unknown class>, modifiers: Iterable<KModifier>): TypeSpec.Builder
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
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
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun addSuperinterface(superinterface: <Error class: unknown class>, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
fun addSuperinterface(superinterface: TypeName, delegate: CodeBlock = CodeBlock.EMPTY): TypeSpec.Builder
fun addSuperinterface(superinterface: TypeName, constructorParameter: String): TypeSpec.Builder
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
open override fun addType(typeSpec: TypeSpec): TypeSpec.Builder
Link copied to clipboard
open override fun addTypes(typeSpecs: Iterable<TypeSpec>): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun contextReceivers(vararg receiverTypes: TypeName): TypeSpec.Builder

Adds the given receiverTypes to this type's list of originating elements.

open override fun contextReceivers(receiverTypes: Iterable<TypeName>): TypeSpec.Builder

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
fun primaryConstructor(primaryConstructor: FunSpec?): TypeSpec.Builder
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun superclass(superclass: <Error class: unknown class>): TypeSpec.Builder
fun superclass(superclass: KClass<*>): TypeSpec.Builder
Link copied to clipboard
open fun tag(type: <Error class: unknown class><out <Error class: unknown class>>, tag: Any?): TypeSpec.Builder
open fun tag(type: KClass<*>, tag: Any?): TypeSpec.Builder

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
inline fun <T : Any> TypeSpec.Builder.tag(tag: T?): TypeSpec.Builder

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.