getField

fun getField(name: String): Field

Finds a 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.