@CallerSensitive
public Constructor<T> getDeclaredConstructor (Class<?>… parameterTypes) throws NoSuchMethodException, SecurityException

Returns a Constructor object that reflects the specified 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. If this Class object represents an inner class declared in a non-static context, the formal parameter types include the explicit enclosing instance as the first parameter.

Parameters:
parameterTypes    the parameter array

Returns:  The Constructor object for the constructor with the specified parameter list

Exceptions:
NoSuchMethodException    if a matching method is not found.
SecurityException     If a security manager, s, is present and any of the following conditions is met:
  • the caller's class loader is not the same as the class loader of this class and invocation of s.checkPermission method with RuntimePermission("accessDeclaredMembers") denies access to the declared constructor
  • the caller's class loader is not the same as or an ancestor of the class loader for the current class and invocation of s.checkPackageAccess() denies access to the package of this class

Since:  1.1