Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0423 Get super class

Type getGenericSuperclass() Returns the Type representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class. Class<? super T> getSuperclass() Returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class.