mercredi 30 mars 2022

Java: runtime reflection or type introspection?

Is the following code considered to be runtime reflection or is it type introspection?

Class c = java.util.ArrayList.class;
String className = c.getName();

I want to use this in the compilation phase, and do not want to use any resources (including time) in runtime. Does it use any runtime resource?





Aucun commentaire:

Enregistrer un commentaire