Returns the Type
representing the direct superclass of
the entity (class, interface, primitive type or void) represented by
this Class
.
If the superclass is a parameterized type, the Type
object returned must accurately reflect the actual type
parameters used in the source code. The parameterized type
representing the superclass is created if it had not been
created before. See the declaration of ParameterizedType
for the
semantics of the creation process for parameterized types. If
this Class
represents either the Object
class, an interface, a primitive type, or void, then null is
returned. If this object represents an array class then the
Class
object representing the Object
class is
returned.
java.lang.reflect.GenericSignatureFormatError | if the generic class signature does not conform to the format specified in The Java™ Virtual Machine Specification | |
TypeNotPresentException | if the generic superclass refers to a non-existent type declaration | |
java.lang.reflect.MalformedParameterizedTypeException | if the generic superclass refers to a parameterized type that cannot be instantiated for any reason |
Diagram: Class, Package, Module