TypeSpec

class TypeSpec : AnyTypeSpec

A generated class, struct, enum or protocol declaration.

Types

Builder
Link copied to clipboard
class Builder : Taggable.Builder<TypeSpec.Builder>
Companion
Link copied to clipboard
object Companion
Kind
Link copied to clipboard
sealed class Kind

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
tag
Link copied to clipboard
inline fun <T : Any> tag(type: Class<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
inline fun <T : Any> tag(type: KClass<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
toBuilder
Link copied to clipboard
fun toBuilder(): TypeSpec.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

associatedTypes
Link copied to clipboard
val associatedTypes: List<TypeVariableName>
attributes
Link copied to clipboard
val attributes: List<AttributeSpec>
doc
Link copied to clipboard
val doc: CodeBlock
enumCases
Link copied to clipboard
val enumCases: List<EnumerationCaseSpec>
funSpecs
Link copied to clipboard
val funSpecs: List<FunctionSpec>
isEnum
Link copied to clipboard
val isEnum: Boolean
kind
Link copied to clipboard
val kind: TypeSpec.Kind
modifiers
Link copied to clipboard
val modifiers: Set<Modifier>
name
Link copied to clipboard
val name: String
propertySpecs
Link copied to clipboard
val propertySpecs: List<PropertySpec>
superTypes
Link copied to clipboard
val superTypes: Set<TypeName>
tags
Link copied to clipboard
val tags: Map<KClass<*>, Any>
all tags.
typeSpecs
Link copied to clipboard
open override val typeSpecs: List<AnyTypeSpec>
typeVariables
Link copied to clipboard
val typeVariables: List<TypeVariableName>