I have a list of org.eclipse.jdt.core.IClassFile
, what will be the most simple way to get the actual class file (for reflection)?
The option that I see, in case it's a jar file , is to load jar with JarFile
(I can get jar and package from IClassFile parents) then to iterate over all entries in JarFile
and then ,u sing a classloader to load that class.
But maybe there is a better way...
Aucun commentaire:
Enregistrer un commentaire