spring-framework / org.springframework.util / ReflectionUtils / doWithLocalFields

doWithLocalFields

open static fun doWithLocalFields(clazz: Class<*>, fc: FieldCallback): Unit

Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields.

Parameters

clazz - the target class to analyze

fc - the callback to invoke for each field

Exceptions

IllegalStateException - if introspection fails

Since
4.2

See Also
#doWithFields