public class DefaultParameterNameProvider extends Object implements ParameterNameProvider
ParameterNameProvider
implementation which returns
parameter names in the form arg0
, arg1
etc. as defined by the
BV specification.Constructor and Description |
---|
DefaultParameterNameProvider() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getParameterNames(Constructor<?> constructor)
Returns the names of the parameters of the given constructor.
|
List<String> |
getParameterNames(Method method)
Returns the names of the parameters of the given method.
|
protected String |
getPrefix()
Returns the prefix to be used for parameter names.
|
public List<String> getParameterNames(Constructor<?> constructor)
ParameterNameProvider
getParameterNames
in interface ParameterNameProvider
constructor
- the constructor for which the parameter names shall be
retrieved; never null
null
public List<String> getParameterNames(Method method)
ParameterNameProvider
getParameterNames
in interface ParameterNameProvider
method
- the method for which the parameter names shall be retrieved;
never null
null
protected String getPrefix()
arg
as per
the spec. Can be overridden to create customized name providers.Copyright © 2017 JBoss by Red Hat. All rights reserved.