Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0414 Get all classes contained

Class<?>[] getClasses() Returns an array containing Class objects representing all the public classes and interfaces that are members of the class. Class<?>[] getDeclaredClasses() Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.