public static List < String > getMethodNames ( Object obj ) { List < String > methods = new ArrayList < String > ( ) ; Class < ? > objClass = obj . getClass ( ) ; for ( Method method : objClass . getMethods ( ) ) { if ( matchMethod ( method , method . getName ( ) ) ) { methods . add ( method . getName ( ) ) ; } } return methods ; }
Gets names of all methods implemented in specified object .