Module lettuce.core
Package io.lettuce.core.dynamic.support
Class StandardReflectionParameterNameDiscoverer
java.lang.Object
io.lettuce.core.dynamic.support.StandardReflectionParameterNameDiscoverer
- All Implemented Interfaces:
ParameterNameDiscoverer
public class StandardReflectionParameterNameDiscoverer extends Object implements ParameterNameDiscoverer
ParameterNameDiscoverer implementation which uses JDK 8's reflection facilities for introspecting parameter names
(based on the "-parameters" compiler flag).- See Also:
Parameter.getName()
-
Constructor Summary
Constructors Constructor Description StandardReflectionParameterNameDiscoverer() -
Method Summary
Modifier and Type Method Description String[]getParameterNames(Constructor<?> ctor)Return parameter names for this constructor, ornullif they cannot be determined.String[]getParameterNames(Method method)Return parameter names for this method, ornullif they cannot be determined.
-
Constructor Details
-
StandardReflectionParameterNameDiscoverer
public StandardReflectionParameterNameDiscoverer()
-
-
Method Details
-
getParameterNames
Description copied from interface:ParameterNameDiscovererReturn parameter names for this method, ornullif they cannot be determined.- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Parameters:
method- method to find parameter names for- Returns:
- an array of parameter names if the names can be resolved, or
nullif they cannot
-
getParameterNames
Description copied from interface:ParameterNameDiscovererReturn parameter names for this constructor, ornullif they cannot be determined.- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Parameters:
ctor- constructor to find parameter names for- Returns:
- an array of parameter names if the names can be resolved, or
nullif they cannot
-