kotlinpoet / com.squareup.kotlinpoet / PropertySpec

PropertySpec

class PropertySpec

A generated property declaration.

Types

Builder class Builder

Properties

annotations val annotations: List<AnnotationSpec>
initializer val initializer: CodeBlock?
kdoc val kdoc: CodeBlock
modifiers val modifiers: Set<KModifier>
mutable val mutable: Boolean
name val name: String
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

builder fun builder(type: TypeName, name: String, vararg modifiers: KModifier): Builder
fun builder(type: Type, name: String, vararg modifiers: KModifier): Builder
fun builder(type: KClass<*>, name: String, vararg modifiers: KModifier): Builder
varBuilder fun varBuilder(type: TypeName, name: String, vararg modifiers: KModifier): Builder
fun varBuilder(type: Type, name: String, vararg modifiers: KModifier): Builder
fun varBuilder(type: KClass<*>, name: String, vararg modifiers: KModifier): Builder