jeudi 4 juillet 2019

How to get all the Classes of the package without doing it individually by doing Class.forName

I am starting doing reflections here and I wanted to manipulate the Classes in my project package, it seems like we can only doing it by instantiating them as follows : Class c = Class.forName("name of the class"); But I was wondering if there is a way to get an array of all the classes of the package without doing it individually via "forName" Method.

Thank you very much!





Aucun commentaire:

Enregistrer un commentaire