kotlinpoet / com.squareup.kotlinpoet / TypeAliasSpec

TypeAliasSpec

class TypeAliasSpec : Taggable

A generated typealias declaration

Types

Builder

class Builder : Taggable.Builder<TypeAliasSpec.Builder>

Properties

kdoc

val kdoc: CodeBlock

modifiers

val modifiers: Set<KModifier>

name

val name: String

type

val type: TypeName

typeVariables

val typeVariables: List<TypeVariableName>

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toBuilder

fun toBuilder(): TypeAliasSpec.Builder

toString

fun toString(): String

Companion Object Functions

builder

fun builder(name: String, type: TypeName): TypeAliasSpec.Builder
fun builder(name: String, type: Type): TypeAliasSpec.Builder
fun builder(name: String, type: KClass<*>): TypeAliasSpec.Builder

Extension Functions

tag

fun <T : Any> Taggable.tag(): T?

Returns the tag attached with T as a key, or null if no tag is attached with that key.