public static Selection forName ( Class cl , String name ) { java . lang . reflect . Method [ ] all ; int i ; List < Function > lst ; Function fn ; all = cl . getDeclaredMethods ( ) ; lst = new ArrayList < Function > ( ) ; for ( i = 0 ; i < all . length ; i ++ ) { if ( name . equals ( all [ i ] . getName ( ) ) ) { fn = create ( all [ i ] ) ; if ( fn != null ) { lst . add ( fn ) ; } } } return new Selection ( lst ) ; }
Gets all valid Methods from the specified class with the specified name .