corda / net.corda.core.internal / DeclaredField

DeclaredField

class DeclaredField<T>

A simple wrapper around a Field object providing type safe read and write access using value, ignoring the field's visibility.

Constructors

<init>

DeclaredField(clazz: Class<*>, name: String, receiver: Any?)

A simple wrapper around a Field object providing type safe read and write access using value, ignoring the field's visibility.

Properties

value

var value: T

Extension Functions

declaredField

fun <T> Any.declaredField(name: String): DeclaredField<T>

Returns a DeclaredField wrapper around the declared (possibly non-public) instance field of the receiver object.

fun <T> Any.declaredField(clazz: KClass<*>, name: String): DeclaredField<T>

Returns a DeclaredField wrapper around the (possibly non-public) instance field of the receiver object, but declared in its superclass clazz.