ddimtirov / nuggets

nuggets is (yet another) utility library for Java
https://ddimtirov.github.io/nuggets/javadoc/io/github/ddimitrov/nuggets/package-summary.html
Apache License 2.0
4 stars 1 forks source link

Iterate through accessible members #47

Closed ddimtirov closed 7 years ago

ddimtirov commented 7 years ago

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.