public class ReflectionParameterNameProvider extends Object implements ParameterNameProvider
For this provider to return the actual parameter names, classes must be compiled with the '-parameters' compiler
argument. Otherwise, the JDK will return synthetic names in the form arg0, arg1, etc.
See also JEP 118
| Constructor and Description |
|---|
ReflectionParameterNameProvider() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getParameterNames(Constructor<?> constructor) |
List<String> |
getParameterNames(Method method) |
public List<String> getParameterNames(Constructor<?> constructor)
getParameterNames in interface ParameterNameProviderpublic List<String> getParameterNames(Method method)
getParameterNames in interface ParameterNameProviderCopyright © 2007-2019 Red Hat, Inc. All Rights Reserved