java如何返回类的方法名称及其参数
如何返回类的方法,当然使用大名鼎鼎的反射机制。
// Class类:
1.public Method[] getDeclaredMethods()
throws SecurityException; // 返回被反射的类中声明的方法数组;
2.public Method[] getMethods()
throws SecurityException;// 返回所有方法,包含继承自父类的方法;
// Method类:
public final class Method
extends AccessibleObject
implements GenericDeclaration, ...