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.
clazz - the target class to analyze
fc - the callback to invoke for each field
IllegalStateException - if introspection fails
Since
4.2
See Also
#doWithFields