Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
getMethodParameterAnnotations(Method method,
int index,
Class<A> annotationClass)
Get
Annotation s of the provided class associated to the the provided method parameter. |
static <A extends Annotation> |
getMethodParameterAnnotations(Method method,
int index,
Class<A> annotationClass,
boolean inherits)
Get
Annotation s of the provided class associated to the the provided method parameter. |
public static <A extends Annotation> List<A> getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass)
Annotation
s of the provided class associated to the the provided method parameter.A
- the actual Annotation
typemethod
- the methodindex
- the index of the parameter in the methodannotationClass
- the class of the annotationpublic static <A extends Annotation> List<A> getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass, boolean inherits)
Annotation
s of the provided class associated to the the provided method parameter.A
- the actual Annotation
typemethod
- the methodindex
- the index of the parameter in the methodannotationClass
- the class of the annotationinherits
- if true also search on overwritten methods from interfaces and super classesCopyright © 2004–2021 XWiki. All rights reserved.