interface Accessor<out V>
Represents a property accessor, which is a get
or set
method declared alongside the property. See the Kotlin language documentation for more information.
V
- the type of the property, which it is an accessor of.
The property which this accessor is originated from.
abstract val property: KProperty<V>
Getter of the property is a get
method declared alongside the property.
interface Getter<out V> : KProperty.Accessor<V>, KFunction<V>
Setter of the property is a set
method declared alongside the property.
interface Setter<V> : KProperty.Accessor<V>, KFunction<Unit>
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-property/-accessor/index.html