Package org.xwiki.component.util
Class ReflectionMethodUtils
- java.lang.Object
-
- org.xwiki.component.util.ReflectionMethodUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends Annotation>
List<A>getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass)
GetAnnotation
s of the provided class associated to the the provided method parameter.static <A extends Annotation>
List<A>getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass, boolean inherits)
GetAnnotation
s of the provided class associated to the the provided method parameter.
-
-
-
Method Detail
-
getMethodParameterAnnotations
public static <A extends Annotation> List<A> getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass)
GetAnnotation
s of the provided class associated to the the provided method parameter.- Type Parameters:
A
- the actualAnnotation
type- Parameters:
method
- the methodindex
- the index of the parameter in the methodannotationClass
- the class of the annotation- Returns:
- the annotations
-
getMethodParameterAnnotations
public static <A extends Annotation> List<A> getMethodParameterAnnotations(Method method, int index, Class<A> annotationClass, boolean inherits)
GetAnnotation
s of the provided class associated to the the provided method parameter.- Type Parameters:
A
- the actualAnnotation
type- Parameters:
method
- 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 classes- Returns:
- the annotations
-
-