public static Set < Method > getAllMethods ( Class < ? > classs ) { Set < Method > set = new HashSet <> ( ) ; Class < ? > c = classs ; while ( c != null ) { set . addAll ( Arrays . asList ( c . getDeclaredMethods ( ) ) ) ; c = c . getSuperclass ( ) ; } return set ; }
Gets all methods from class and its super classes .