Package org.analogweb.util
Class AnnotationUtils
- java.lang.Object
-
- org.analogweb.util.AnnotationUtils
-
public final class AnnotationUtils extends Object
Utilities forAnnotation
- Author:
- snowgoose
-
-
Constructor Summary
Constructors Constructor Description AnnotationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Annotation>
TfindAnnotation(Class<T> target, Annotation... annotations)
static <T extends Annotation>
TfindAnnotation(Class<T> target, Class<?> annotationContainsClass)
static <T extends Annotation>
List<T>findAnnotations(Class<T> target, Method method)
static <T> T
getValue(Annotation annotation)
static <T> T
getValue(Annotation annotation, String attributeName)
static boolean
isDeclared(Class<? extends Annotation> expectDeclared, Class<?> clazz)
-
-
-
Method Detail
-
findAnnotation
public static <T extends Annotation> T findAnnotation(Class<T> target, Class<?> annotationContainsClass)
-
findAnnotation
public static <T extends Annotation> T findAnnotation(Class<T> target, Annotation... annotations)
-
findAnnotations
public static <T extends Annotation> List<T> findAnnotations(Class<T> target, Method method)
-
getValue
public static <T> T getValue(Annotation annotation)
-
getValue
public static <T> T getValue(Annotation annotation, String attributeName)
-
isDeclared
public static boolean isDeclared(Class<? extends Annotation> expectDeclared, Class<?> clazz)
-
-