Hi, I am new to domain java reflection. Can anyone guide me in this problematic scenario.
I have a class called "SomClass.java" and it imports a package named "SomPackage.RefClass" and some other java libraries like java.lang .. etc.
Now I want to know all the imports defined in the class through reflection.
import SomPackage.RefClass; import java.lang.reflect.Field; import java.io.IOException; public class SomeClass{ RefClass refClass_Obj; String nationality;
I just want to know the list of all imports defined in the class using reflection.
I saw that Question posted a post similar to my Q, but it is not well designed, so you need a good help line.
Thanks in advance.
java reflection dependencies
zaree
source share