code: public MethodDoc[] methods(boolean filter) {
          Names names = tsym.name.table.names;
          List<MethodDocImpl> methods = List.nil();
          for (Symbol sym :tsym.members().getSymbols(NON_RECURSIVE)) {
              if (sym != null
                  && sym.kind == MTH
                  && sym.name != names.init
                  && sym.name != names.clinit) {
                  MethodSymbol s = (MethodSymbol)sym;
                  if (!filter || env.shouldDocument(s)) {
                      methods = methods.prepend(env.getMethodDoc(s));
                  }
              }
          }
          //### Cache methods here?
          return methods.toArray(new MethodDocImpl[methods.length()]);
      }
docs: Return methods in class.
  This method is overridden by AnnotationTypeDocImpl.
  
  @param filter include only the included methods if filter==true
  @return an array of MethodDocImpl for representing the visible
  methods in this class.  Does not include constructors.