public class Parameter extends Object
| Constructor and Description |
|---|
Parameter(Method method,
int parameterIndex) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
findAnnotation(Class<A> annotationType)
Return the parameter annotation of the given type, if available.
|
List<? extends Annotation> |
getAnnotations()
Return all parameter annotations.
|
String |
getName() |
int |
getParameterIndex() |
Class<?> |
getParameterType() |
TypeInformation<?> |
getTypeInformation() |
boolean |
isAssignableTo(Class<?> target)
Check whether the parameter is assignable to
target. |
boolean |
isSpecialParameter() |
public Parameter(Method method, int parameterIndex)
public <A extends Annotation> A findAnnotation(Class<A> annotationType)
annotationType - the annotation type to look for.null if not found.public List<? extends Annotation> getAnnotations()
List of annotation objects.public int getParameterIndex()
public Class<?> getParameterType()
public TypeInformation<?> getTypeInformation()
TypeInformation.public boolean isAssignableTo(Class<?> target)
target.target - must not be null.public boolean isSpecialParameter()
true if the parameter is a special parameter.public String getName()
null if not available.Copyright © 2021 lettuce.io. All rights reserved.