public final class ReflectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotatedElement> |
addAnnotated(T[] elements,
List<T> set) |
static List<Field> |
collectInjectableFields(Class<?> type) |
static List<Method> |
collectInjectableMethods(Class<?> type) |
static <T extends Annotation> |
getAnnotation(AnnotatedElement element,
Class<T> annotationClass)
Get an annotation from either the element itself or on any of the
element's annotations (meta-annotations).
|
static Type |
mapPrimitiveClasses(Type type) |
static Type |
mapWrapperClasses(Type type) |
public static <T extends AnnotatedElement> void addAnnotated(T[] elements, List<T> set)
public static <T extends Annotation> T getAnnotation(AnnotatedElement element, Class<T> annotationClass)
element
- the elementannotationClass
- the annotation classCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.