mercredi 1 avril 2020

How can I get the imports of a java class of other project in my method using URLClassLoader or Reflection API?

I need to check if the import files of another java file from another project or jar are interfaces or classes Suppose Demo is a project and it has a java file CreateDemo.java Now my current project is Sample, I need to know what import statements are there in CreateDemo.java and if those import statements are interfaces or classes. Can Someone help me here??





Aucun commentaire:

Enregistrer un commentaire