Class.getDeclaredMethods
Returns an array containing Method objects reflecting all the declared methods of the class or interface represented by this Class object, including public, protected, default (package) access, and private methods, but excluding inherited methods.
返回一个数组,包含类或接口声明的方法对象: 包含 public、protected、package(缺省的),以及 private 方法,但不包含继承的方法;
If this Class object represents a type that has multiple declared methods with the same name and parameter types, but different return types, then the returned array has a Method object for each such method.
如果这个对象中有同名方法, 有同名同类型的参数但返回不同的类型, 则返回的数组中,每个方法对应一个Method对象;
If this Class object represents a type that has a class initialization method <clinit>, then the returned array does not have a corresponding Method object.
如果这个对象有类的初始化方法<cinit>,则返回的数组中不包含此方法;
If this Class object represents a class or interface with no declared methods, then the returned array has length 0.
如果这个类对象表示没有声明方法的类或接口,返回数组的程度为0;
If this Class object represents an array type, a primitive type, or void, then the returned array has length 0.
如果这个类对象表示数组类型、基本类型或void,则返回的数组长度为0。
The elements in the returned array are not sorted and are not in any particular order.
返回的数组中的元素没有排序,也没有任何特定的顺序。