Class.getDeclaredConstructor

Class.getDeclaredConstructor

Class Overview | Class Members | This Package | All Packages

Syntax
public Constructor getDeclaredConstructor( Class parameterTypes[] ) throws NoSuchMethodException, SecurityException
Description
Returns a Constructor object that reflects the specified declared constructor of the class or interface 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.

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