As constructors, methods and fields share the AccessibleObject interface, we can write a generic function that would allow us to iterate through all members in all classes, taking care of reflection, setting accessibility flag and rethrowing any exceptions from the processing strategy.
As constructors, methods and fields share the
AccessibleObject
interface, we can write a generic function that would allow us to iterate through all members in all classes, taking care of reflection, setting accessibility flag and rethrowing any exceptions from the processing strategy.