eagle-core/src/main/java/eagle/jfaster/org/util/ReflectUtil.java
public static List<Method> getPublicMethod(Class<?> clz) {
        Method[] methods = clz.getMethods();
        List<Method> ret = new ArrayList<Method>();

        for (Method method : methods) {

            boolean isPublic = Modifier.isPublic(method.getModifiers());
            boolean isNotObjectClass = method.getDeclaringClass() != Object.class;

            if (isPublic && isNotObjectClass) {
                ret.add(method);
            }
        }

        return ret;
    }
public static List<Method> getPublicMethod(Class<?> clz) {
        Method[] methods = clz.getMethods();
        List<Method> ret = new ArrayList<Method>();

        for (Method method : methods) {

            boolean isPublic = Modifier.isPublic(method.getModifiers());
            boolean isNotObjectClass = method.getDeclaringClass() != Object.class;

            if (isPublic && isNotObjectClass) {
                ret.add(method);
            }
        }

        return ret;
    }
public static List < Method > getPublicMethod ( Class < ? > clz ) { Method [ ] methods = clz . getMethods ( ) ; List < Method > ret = new ArrayList < Method > ( ) ; for ( Method method : methods ) { boolean isPublic = Modifier . isPublic ( method . getModifiers ( ) ) ; boolean isNotObjectClass = method . getDeclaringClass ( ) != Object . class ; if ( isPublic && isNotObjectClass ) { ret . add ( method ) ; } } return ret ; }
获取clz public method
<p>
<pre>
1）不包含构造函数
2）不包含Object.class
3）包含该clz的父类的所有public方法
</pre>

@param clz
@return
获取clz public method <p > <pre > 1）不包含构造函数 2）不包含Object . class 3）包含该clz的父类的所有public方法 < / pre >