获取参数类型
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ /* 来自 *N o w J a v a . c o m*/ import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; public class Main{ public static Class[] getParameterTypes(String... parameterTypeNames) { Class[] parameterTypes = new Class[parameterTypeNames.length]; for (int i = 0; i < parameterTypeNames.length; i++) { parameterTypes[i] = getClass(parameterTypeNames[i]); } return parameterTypes; } public static Class getClass(String name) { try { return ClassLoaderUtil.class.getClassLoader().loadClass(name);/** 来自 n o w j a v