SimplePropertyGetter

class SimplePropertyGetter<T, V>(val property: KProperty1<T, V>) : PropertyGetter<T, V>

PropertyGetter implementation that accesses a Kotlin property reflectively. This getter uses Kotlin reflection to access property values, automatically ensuring the property is accessible for private/protected properties.

Parameters

T

the type of the target object

V

the type of the property value

Constructors

Link copied to clipboard
constructor(property: KProperty1<T, V>)

Properties

Link copied to clipboard

the Kotlin property to access

Functions

Link copied to clipboard
open operator override fun get(receiver: T): V

Gets the property value from the receiver using reflection.

Link copied to clipboard

Converts a property getter into a named aggregate getter.