Class ReflectionUtils

java.lang.Object
com.bobocode.bring.web.utils.ReflectionUtils

public final class ReflectionUtils extends Object
The ReflectionUtils class is a utility class providing methods for reflection-related operations. It utilizes the Paranamer library to retrieve parameter names of accessible methods.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

    • info

      private final com.thoughtworks.paranamer.Paranamer info
      An instance of Paranamer for parameter name lookup.
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getParameterNames

      public List<String> getParameterNames(AccessibleObject method)
      Retrieves the parameter names of the specified accessible method or constructor.
      Parameters:
      method - The accessible method or constructor.
      Returns:
      A list of parameter names in the order they appear in the method signature.