class TypeSpec : AnyTypeSpec
A generated class, struct, enum or protocol declaration.
Builder |
class Builder |
Kind |
sealed class Kind |
associatedTypes |
val associatedTypes: List<TypeVariableName> |
doc |
val doc: CodeBlock |
enumCases |
val enumCases: List<EnumerationCaseSpec> |
funSpecs |
val funSpecs: List<FunctionSpec> |
isEnum |
val isEnum: Boolean |
kind |
val kind: Kind |
modifiers |
val modifiers: Set<Modifier> |
propertySpecs |
val propertySpecs: List<PropertySpec> |
superTypes |
val superTypes: Set<TypeName> |
typeVariables |
val typeVariables: List<TypeVariableName> |
equals |
fun equals(other: Any?): Boolean |
hashCode |
fun hashCode(): Int |
toBuilder |
fun toBuilder(): Builder |
toString |
fun toString(): String |
classBuilder |
fun classBuilder(name: String): Builder fun classBuilder(className: DeclaredTypeName): Builder |
enumBuilder |
fun enumBuilder(name: String): Builder fun enumBuilder(enumName: DeclaredTypeName): Builder |
protocolBuilder |
fun protocolBuilder(name: String): Builder fun protocolBuilder(protocolName: DeclaredTypeName): Builder |
structBuilder |
fun structBuilder(name: String): Builder fun structBuilder(structName: DeclaredTypeName): Builder |