|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotatedItem<T,S>
AnnotatedItem provides a uniform access to the annotations on an annotated item defined either in Java or XML
Field Summary | |
---|---|
static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
MAPPED_METAANNOTATIONS
|
Method Summary | ||
---|---|---|
java.lang.reflect.Type[] |
getActualTypeArguments()
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents. |
|
|
getAnnotation(java.lang.Class<A> annotationType)
Gets an annotation for the annotation type specified. |
|
|
getAnnotationsAsSet()
Gets all annotations on the item |
|
AnnotationStore |
getAnnotationStore()
|
|
java.util.Set<java.lang.annotation.Annotation> |
getBindings()
Deprecated. This reflection type should not know about JSR-299 binding types |
|
java.lang.annotation.Annotation[] |
getBindingsAsArray()
Deprecated. This reflection type should not know about JSR-299 binding types |
|
java.util.Set<java.lang.annotation.Annotation> |
getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item with the given meta annotation type |
|
java.util.Set<? extends java.lang.reflect.Type> |
getFlattenedTypeHierarchy()
|
|
java.util.Set<java.lang.annotation.Annotation> |
getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are annotated with the given meta annotation type |
|
java.lang.annotation.Annotation[] |
getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are annotated with the given meta annotation type |
|
java.lang.String |
getName()
Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown |
|
java.lang.Class<T> |
getRawType()
Gets the type of the element |
|
java.lang.reflect.Type |
getType()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
boolean |
isAssignableFrom(AnnotatedItem<?,?> that)
Extends Java Class assignability such that actual type parameters are also considered |
|
boolean |
isAssignableFrom(java.util.Set<? extends java.lang.reflect.Type> types)
Checks if any of the types provided are assignable to this, using the extended assignability algorithm provided by AnnotatedItem. |
|
boolean |
isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
boolean |
isFinal()
Indicates if this AnnotatedItem represents a final element |
|
boolean |
isParameterizedType()
|
|
boolean |
isProxyable()
Indicates if this AnnotatedItem can be proxyed |
|
boolean |
isPublic()
Indicates if this annotated item is public |
|
boolean |
isStatic()
Indicates if this AnnotatedItem represents a static element |
Field Detail |
---|
static final java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_METAANNOTATIONS
Method Detail |
---|
<A extends java.lang.annotation.Annotation> java.util.Set<A> getAnnotationsAsSet()
java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
The
- meta annotation to match
java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
The
- meta annotation to match
java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
The
- meta annotation to match
java.util.Set<java.lang.annotation.Annotation> getBindings()
java.lang.annotation.Annotation[] getBindingsAsArray()
<A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
annotationType
- The annotation to match
java.util.Set<? extends java.lang.reflect.Type> getFlattenedTypeHierarchy()
boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
java.lang.Class<T> getRawType()
java.lang.reflect.Type getType()
boolean isAssignableFrom(AnnotatedItem<?,?> that)
that
- The other item to check assignability against
boolean isAssignableFrom(java.util.Set<? extends java.lang.reflect.Type> types)
types
- The set of types to match
java.lang.reflect.Type[] getActualTypeArguments()
boolean isStatic()
boolean isFinal()
boolean isProxyable()
boolean isPublic()
java.lang.String getName()
AnnotationStore getAnnotationStore()
boolean isParameterizedType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |