kotlinpoet / com.squareup.kotlinpoet / TypeAliasSpec / Builder

Builder

class Builder : Taggable.Builder<TypeAliasSpec.Builder>

Properties

modifiers

val modifiers: MutableSet<KModifier>

tags

val tags: MutableMap<KClass<*>, Any>

Mutable map of the current tags this builder contains.

typeVariables

val typeVariables: MutableSet<TypeVariableName>

Functions

addKdoc

fun addKdoc(format: String, vararg args: Any): TypeAliasSpec.Builder
fun addKdoc(block: CodeBlock): TypeAliasSpec.Builder

addModifiers

fun addModifiers(vararg modifiers: KModifier): TypeAliasSpec.Builder

addTypeVariable

fun addTypeVariable(typeVariable: TypeVariableName): TypeAliasSpec.Builder

addTypeVariables

fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): TypeAliasSpec.Builder

build

fun build(): TypeAliasSpec

Inherited Functions

tag

open fun tag(type: Class<*>, tag: Any?): T
open fun tag(type: KClass<*>, tag: Any?): T

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.

Extension Functions

tag

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