Class<?> clazz = MyClass.class; Method[] methods = clazz.getDeclaredMethods(); for (Method method : methods) { if (method.getName().equals("myMethod")) { Parameter[] parameters = method.getParameters(); for (Parameter parameter : parameters) { } } }


上一篇:
下一篇:
切换中文