Utils.getSuperclass

Overview | Methods | This Package | All Packages

Utils.getSuperclass

Retrieves the superclass of the specified class.

Syntax

public static Class getSuperclass( Class type )

Parameter

type

The class to get the superclass of.

Return Value

Returns the superclass of the specified type.

Remarks

This method correctly returns the superclass of an array class type. For example, the superclass of Control[].class will be returned as Component[].class. The standard Java reflection APIs always return Object.class as the superclass of any array type.