public final class Annotations extends Object
Modifier and Type | Field and Description |
---|---|
static Function<Type,Stream<Annotation>> |
ANNOTATIONS_OF |
Constructor and Description |
---|
Annotations() |
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
annotationOn(Type type,
Class<T> annotationType) |
static List<Annotation> |
findAccessorAndTypeAnnotationsIn(AccessibleObject accessor) |
static Predicate<AnnotatedElement> |
hasAnnotation(Class<? extends Annotation> annotationType) |
static Predicate<Annotation> |
isType(Class<? extends Annotation> annotationType) |
static Function<Annotation,Class<? extends Annotation>> |
type() |
static Predicate<Annotation> |
typeHasAnnotation(Class<? extends Annotation> annotationType) |
public static final Function<Type,Stream<Annotation>> ANNOTATIONS_OF
public static Predicate<Annotation> typeHasAnnotation(Class<? extends Annotation> annotationType)
public static Predicate<AnnotatedElement> hasAnnotation(Class<? extends Annotation> annotationType)
public static Function<Annotation,Class<? extends Annotation>> type()
public static Predicate<Annotation> isType(Class<? extends Annotation> annotationType)
public static <T extends Annotation> T annotationOn(Type type, Class<T> annotationType)
public static List<Annotation> findAccessorAndTypeAnnotationsIn(AccessibleObject accessor)