Class.getDeclaredClasses

Class.getDeclaredClasses

Class Overview | Class Members | This Package | All Packages

Syntax
public Class[] getDeclaredClasses() throws SecurityException
Description
Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object. This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces. Returns an array of length 0 if the class declares no classes or interfaces as members, or if this Class object represents a primitive type.

Exceptions
SecurityException if access to the information is denied.