getParameterNames

Returns the names of the declared parameters for the given constructor.
If we cannot determine the names, return null. The returned array will
have one name per parameter. The length of the array will be the same
as the length of the Class[] array returned by Constructor.getParameterTypes().

Parameters:

ctor -

Returns:

Returns String[] array of names, one per parameter, or null

getParameterNames

Returns the names of the declared parameters for the given method.
If we cannot determine the names, return null. The returned array will
have one name per parameter. The length of the array will be the same
as the length of the Class[] array returned by Method.getParameterTypes().