Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0454 Get parameter types

Type[] getGenericParameterTypes() Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this Method object. Class<?>[] getParameterTypes() Returns an array of Class objects that represent the formal parameter types, in declaration order, of the method represented by this Method object.