getDeclaredField

fun getDeclaredField(name: String): Field

Finds a declared field with the given name.

Return

a Field matching the criteria.

Parameters

name

name of the field to search for.

Throws

ReflectionException

if unable to find the field.