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

API to get all methods including from superclasses

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 12.3
    • Fix Version/s: 12.5-rc-1
    • Component/s: Component
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: