java.lang.Object
io.ebean.util.AnnotationUtil
Annotation utility methods to find annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
Aget(AnnotatedElement element, Class<A> annotation) Simple get on field or method with no meta-annotations or platform filtering.static <A extends Annotation>
booleanhas(AnnotatedElement element, Class<A> annotation) Simple has with no meta-annotations or platform filtering.static Set<Annotation>metaFindAll(AnnotatedElement element, Class<?> annotationType) Find all the annotations of a given type searching meta-annotations.static Set<Annotation>metaFindAllFor(AnnotatedElement element, Set<Class<?>> filter) Find all the annotations for the filter searching meta-annotations.static booleanmetaHas(AnnotatedElement element, Class<?> annotationType) Check if an element is annotated with an annotation of given type searching meta-annotations.static booleannotJavaLang(Annotation annotation) Determine if the suppliedAnnotationis defined in the core JDKjava.lang.annotationpackage.static <A extends Annotation>
AOn class get the annotation - includes inheritance.static <A extends Annotation>
Set<A>typeGetAll(Class<?> clazz, Class<A> annotationType) On class get all the annotations - includes inheritance.static <A extends Annotation>
booleanOn class simple check for annotation - includes inheritance.
-
Constructor Details
-
AnnotationUtil
public AnnotationUtil()
-
-
Method Details
-
notJavaLang
Determine if the suppliedAnnotationis defined in the core JDKjava.lang.annotationpackage. -
get
Simple get on field or method with no meta-annotations or platform filtering. -
has
Simple has with no meta-annotations or platform filtering. -
typeGet
On class get the annotation - includes inheritance. -
typeGetAll
On class get all the annotations - includes inheritance. -
typeHas
On class simple check for annotation - includes inheritance. -
metaHas
Check if an element is annotated with an annotation of given type searching meta-annotations. -
metaFindAll
Find all the annotations of a given type searching meta-annotations. -
metaFindAllFor
Find all the annotations for the filter searching meta-annotations.
-