accessField

fun <T> accessField(fieldName: String? = null): FieldAccessor<T>

A delegate that provides efficient accessing of a field via reflection.

Parameters

T

The type of the field to be accessed.

fieldName

The name of the field. If null, will use the property name.