class PropertySpec : Taggable, OriginatingElementsHolder
A generated property declaration.
class Builder : Taggable.Builder<PropertySpec.Builder>, OriginatingElementsHolder.Builder<PropertySpec.Builder> |
val annotations: List<AnnotationSpec> |
|
val delegated: Boolean |
|
val getter: FunSpec? |
|
val initializer: CodeBlock? |
|
val kdoc: CodeBlock |
|
val modifiers: Set<KModifier> |
|
val mutable: Boolean |
|
val name: String |
|
val receiverType: TypeName? |
|
val setter: FunSpec? |
|
val type: TypeName |
|
val typeVariables: List<TypeVariableName> |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun toBuilder(): PropertySpec.Builder |
|
fun toString(): String |
fun builder(name: String, type: TypeName, vararg modifiers: KModifier): PropertySpec.Builderfun builder(name: String, type: Type, vararg modifiers: KModifier): PropertySpec.Builderfun builder(name: String, type: KClass<*>, vararg modifiers: KModifier): PropertySpec.Builder |
fun <T : Any> Taggable.tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key. |