How to get all imports defined in a class using java reflection?
Wed Apr 01 2020 10:09:44 GMT+0000 (Coordinated Universal Time)
Saved by @SunLoves #java #java #reflection #dependencies
You can use Qdox to get all the imports in a class which is not actually through reflection, but it can serve your purpose.
https://stackoverflow.com/questions/5701305/how-to-get-all-imports-defined-in-a-class-using-java-reflection
Comments