Class.getConstructor

Class.getConstructor

Class Overview | Class Members | This Package | All Packages

Syntax
public Constructor getConstructor( Class parameterTypes[] ) throws NoSuchMethodException, SecurityException
Description
Returns a Constructor object that reflects the specified public constructor of the class represented by this Class object. The parameterTypes parameter is an array of Class objects that identify the constructor's formal parameter types, in declared order.

The constructor to reflect is located by searching all the constructors of the class represented by this Class object for a public constructor with the exactly the same formal parameter types.

Exceptions
NoSuchMethodException if a matching method is not found.
Exceptions
SecurityException if access to the information is denied.
See Also
Constructor