Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1948

API to get all methods including from superclasses

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 12.5-rc-1
    • 12.3
    • Component
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Example usage:

      Collection<Method> methods = ReflectionUtils.getAllMethods(SomeClass.class);
      

      Note:

      • Class#getMethods() only returns public methods
      • Class#getDeclaredMethods() only returns methods in the class and not from superclasses

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: