handlebars/src/main/java/com/github/jknack/handlebars/context/MethodValueResolver.java
protected void members(final Class<?> clazz, final Set<Method> members) {
    if (clazz != Object.class) {
      // Keep backing up the inheritance hierarchy.
      Method[] methods = clazz.getDeclaredMethods();
      for (Method method : methods) {
        if (matches(method, memberName(method))) {
          members.add(method);
        }
      }
      if (clazz.getSuperclass() != null) {
        members(clazz.getSuperclass(), members);
      }
      for (Class<?> superIfc : clazz.getInterfaces()) {
        members(superIfc, members);
      }
    }
  }
/**
   * Collect all the method from the given class.
   *
   * @param clazz The base class.
   * @param members The members result set.
   */
Collect all the method from the given class.
@param clazz The base class.
@param members The members result set.
Collect all the method from the given class . @param clazz The base class . @param members The members result set .
protected void members(final Class<?> clazz, final Set<Method> members) {
    if (clazz != Object.class) {
      Method[] methods = clazz.getDeclaredMethods();
      for (Method method : methods) {
        if (matches(method, memberName(method))) {
          members.add(method);
        }
      }
      if (clazz.getSuperclass() != null) {
        members(clazz.getSuperclass(), members);
      }
      for (Class<?> superIfc : clazz.getInterfaces()) {
        members(superIfc, members);
      }
    }
  }
protected void members ( final Class < ? > clazz , final Set < Method > members ) { if ( clazz != Object . class ) { Method [ ] methods = clazz . getDeclaredMethods ( ) ; for ( Method method : methods ) { if ( matches ( method , memberName ( method ) ) ) { members . add ( method ) ; } } if ( clazz . getSuperclass ( ) != null ) { members ( clazz . getSuperclass ( ) , members ) ; } for ( Class < ? > superIfc : clazz . getInterfaces ( ) ) { members ( superIfc , members ) ; } } }
Collect all the method from the given class.
Collect all the method from the given class .
// Keep backing up the inheritance hierarchy.