swiftpoet / io.outfoxx.swiftpoet / EnumerationCaseSpec

EnumerationCaseSpec

class EnumerationCaseSpec : AttributedSpec

Types

Builder

class Builder

Properties

doc

val doc: CodeBlock

name

val name: String

typeOrConstant

val typeOrConstant: Any?

Functions

toBuilder

fun toBuilder(): Builder

Companion Object Functions

builder

fun builder(name: String): Builder
fun builder(name: String, type: TypeName): Builder
fun builder(name: String, type: TupleTypeName): Builder
fun builder(name: String, constant: CodeBlock): Builder
fun builder(name: String, constant: String): Builder
fun builder(name: String, constant: Int): Builder