org.qi4j.api.util
Class Annotations
java.lang.Object
org.qi4j.api.util.Annotations
public final class Annotations
- extends java.lang.Object
Useful methods for handling Annotations.
Field Summary |
static Function<java.lang.reflect.Type,java.lang.Iterable<java.lang.annotation.Annotation>> |
ANNOTATIONS_OF
|
Method Summary |
static
<T extends java.lang.annotation.Annotation>
T |
|
annotationOn(java.lang.reflect.Type type,
java.lang.Class<T> annotationType)
|
static java.lang.Iterable<java.lang.annotation.Annotation> |
findAccessorAndTypeAnnotationsIn(java.lang.reflect.AccessibleObject accessor)
|
static Specification<java.lang.reflect.AnnotatedElement> |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
static Specification<java.lang.annotation.Annotation> |
isType(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
static Function<java.lang.annotation.Annotation,java.lang.Class<? extends java.lang.annotation.Annotation>> |
type()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANNOTATIONS_OF
public static Function<java.lang.reflect.Type,java.lang.Iterable<java.lang.annotation.Annotation>> ANNOTATIONS_OF
Annotations
public Annotations()
hasAnnotation
public static Specification<java.lang.reflect.AnnotatedElement> hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
type
public static Function<java.lang.annotation.Annotation,java.lang.Class<? extends java.lang.annotation.Annotation>> type()
isType
public static Specification<java.lang.annotation.Annotation> isType(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationOn
public static <T extends java.lang.annotation.Annotation> T annotationOn(java.lang.reflect.Type type,
java.lang.Class<T> annotationType)
findAccessorAndTypeAnnotationsIn
public static java.lang.Iterable<java.lang.annotation.Annotation> findAccessorAndTypeAnnotationsIn(java.lang.reflect.AccessibleObject accessor)