GetterAccessor

class GetterAccessor<T>(methodName: String?) : ReadOnlyProperty<Any, T>

A delegate that provides efficient accessing of a no-args getter via reflection.

Parameters

T

The type of the value returned by the getter.

methodName

The name of the getter. If null, will use the property name to form getName.

Constructors

Link copied to clipboard
constructor(methodName: String?)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any, property: KProperty<*>): T