public static Method [ ] getMethods ( Class < ? > clazz ) { final boolean legacyApproach = isGetMethodsLegacyApproach ( ) ; final List < Method > allMethods = new ArrayList <> ( ) ; addMethods ( allMethods , clazz , legacyApproach ) ; return allMethods . toArray ( new Method [ allMethods . size ( ) ] ) ; }
Gets all methods of a class excluding those from Object .