code: 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;
      }
docs: 获取clz public method
  <p>
  <pre>
  1）不包含构造函数
  2）不包含Object.class
  3）包含该clz的父类的所有public方法
  </pre>
  
  @param clz
  @return