Package com.bobocode.bring.web.utils
Class ReflectionUtils
java.lang.Object
com.bobocode.bring.web.utils.ReflectionUtils
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final com.thoughtworks.paranamer.Paranamer
An instance of Paranamer for parameter name lookup. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParameterNames
(AccessibleObject method) Retrieves the parameter names of the specified accessible method or constructor.
-
Field Details
-
info
private final com.thoughtworks.paranamer.Paranamer infoAn instance of Paranamer for parameter name lookup.
-
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getParameterNames
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.
-