lundi 23 février 2015

How can I get only protected and public constructors of a java class?

I can get all constructors(private, protected and public) using Java Reflection:



public Constructor<?>[] getDeclaredConstructors();


How can I get only protected and public constructors of a java class ?






Aucun commentaire:

Enregistrer un commentaire