Package io.ebean.util
Class AnnotationUtil
java.lang.Object
io.ebean.util.AnnotationUtil
public class AnnotationUtil extends Object
Annotation utility methods to find annotations.
-
Constructor Summary
Constructors Constructor Description AnnotationUtil() -
Method Summary
Modifier and Type Method Description static <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>metaFindAllFor(AnnotatedElement element, Set<Class<?>> filter)Find all the annotations for the filter searching meta-annotations.static booleannotJavaLang(Annotation annotation)Determine if the suppliedAnnotationis defined in the core JDKjava.lang.annotationpackage.static <A extends Annotation>
AtypeGet(Class<?> clazz, Class<A> annotationType)On 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>
booleantypeHas(Class<?> clazz, Class<A> annotation)On 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. -
metaFindAllFor
Find all the annotations for the filter searching meta-annotations.
-