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
All Methods Static Methods Concrete Methods 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 boolean
notJavaLang(Annotation annotation)
Determine if the suppliedAnnotation
is defined in the core JDKjava.lang.annotation
package.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 Detail
-
AnnotationUtil
public AnnotationUtil()
-
-
Method Detail
-
notJavaLang
public static boolean notJavaLang(Annotation annotation)
Determine if the suppliedAnnotation
is defined in the core JDKjava.lang.annotation
package.
-
get
public static <A extends Annotation> A get(AnnotatedElement element, Class<A> annotation)
Simple get on field or method with no meta-annotations or platform filtering.
-
has
public static <A extends Annotation> boolean has(AnnotatedElement element, Class<A> annotation)
Simple has with no meta-annotations or platform filtering.
-
typeGet
public static <A extends Annotation> A typeGet(Class<?> clazz, Class<A> annotationType)
On class get the annotation - includes inheritance.
-
typeGetAll
public static <A extends Annotation> Set<A> typeGetAll(Class<?> clazz, Class<A> annotationType)
On class get all the annotations - includes inheritance.
-
typeHas
public static <A extends Annotation> boolean typeHas(Class<?> clazz, Class<A> annotation)
On class simple check for annotation - includes inheritance.
-
metaFindAllFor
public static Set<Annotation> metaFindAllFor(AnnotatedElement element, Set<Class<?>> filter)
Find all the annotations for the filter searching meta-annotations.
-
-