mercredi 20 avril 2016

What is the best way to approximate class.getSimpleName() without loading class?

Given a fully qualified class name that can be loaded with Class.forName(), is there a way to transform the name into what would be the result of loading the class and invoking getSimpleName() without actually attempting to load the class? I need this capability for reflection purposes.





Aucun commentaire:

Enregistrer un commentaire