Class InheritedMethodsHelper


  • public class InheritedMethodsHelper
    extends Object
    Deals with methods of types in inheritance hierarchies.
    Author:
    Hardy Ferentschik, Gunnar Morling
    • Method Detail

      • getAllMethods

        public static List<Method> getAllMethods​(Class<?> clazz)
        Get a list of all methods which the given class declares, implements, overrides or inherits. Methods are added by adding first all methods of the class itself and its implemented interfaces, then the super class and its interfaces, etc.
        Parameters:
        clazz - the class for which to retrieve the methods
        Returns:
        set of all methods of the given class