swiftpoet / io.outfoxx.swiftpoet / PropertySpec

PropertySpec

class PropertySpec : AttributedSpec

A generated property declaration.

Types

Builder

class Builder

Properties

doc

val doc: CodeBlock

getter

val getter: FunctionSpec?

initializer

val initializer: CodeBlock?

modifiers

val modifiers: Set<Modifier>

mutable

val mutable: Boolean

name

val name: String

setter

val setter: FunctionSpec?

type

val type: TypeName

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toBuilder

fun toBuilder(): Builder

toString

fun toString(): String

Companion Object Functions

abstractBuilder

fun abstractBuilder(name: String, type: TypeName, vararg modifiers: Modifier): Builder

builder

fun builder(name: String, type: TypeName, vararg modifiers: Modifier): Builder

varBuilder

fun varBuilder(name: String, type: TypeName, vararg modifiers: Modifier): Builder