DATACMNS-731 - Parameter now exposes whether it's named explicitly.
Parameter now has a isExplicitlyNamed() to indicate whether the user explicitly assigned a name to it in contrast to an implicitly discovered parameter name.
This commit is contained in:
@@ -121,6 +121,16 @@ public class Parameter {
|
||||
return parameter.getParameterType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the parameter is named explicitly, i.e. annotated with {@link Param}.
|
||||
*
|
||||
* @return
|
||||
* @since 1.11
|
||||
*/
|
||||
public boolean isExplicitlyNamed() {
|
||||
return parameter.hasParameterAnnotation(Param.class);
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
|
||||
Reference in New Issue
Block a user