public MethodDoc[] methods(boolean filter) {
        Names names = tsym.name.table.names;
        List<MethodDocImpl> methods = List.nil();
        for (Scope.Entry e = tsym.members().elems; e != null; e = e.sibling) {
            if (e.sym != null
                && e.sym.kind == Kinds.MTH
                && e.sym.name != names.init
                && e.sym.name != names.clinit) {
                MethodSymbol s = (MethodSymbol)e.sym;
                if (!filter || env.shouldDocument(s)) {
                    methods = methods.prepend(env.getMethodDoc(s));
                }
            }
        }
        //### Cache methods here?
        return methods.toArray(new MethodDocImpl[methods.length()]);
    }
public MethodDoc [ ] methods ( boolean filter ) { Names names = tsym . name . table . names ; List < MethodDocImpl > methods = List . nil ( ) ; for ( Scope . Entry e = tsym . members ( ) . elems ; e != null ; e = e . sibling ) { if ( e . sym != null && e . sym . kind == Kinds . MTH && e . sym . name != names . init && e . sym . name != names . clinit ) { MethodSymbol s = ( MethodSymbol ) e . sym ; if ( ! filter || env . shouldDocument ( s ) ) { methods = methods . prepend ( env . getMethodDoc ( s ) ) ; } } } return methods . toArray ( new MethodDocImpl [ methods . length ( ) ] ) ; }
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.