Package org.apache.xbean.finder
Class MetaAnnotatedElement<T extends AnnotatedElement>
java.lang.Object
org.apache.xbean.finder.MetaAnnotatedElement<T>
- All Implemented Interfaces:
AnnotatedElement
,Annotated<T>
,MetaAnnotated<T>
- Direct Known Subclasses:
MetaAnnotatedClass
,MetaAnnotatedConstructor
,MetaAnnotatedField
,MetaAnnotatedMethod
public class MetaAnnotatedElement<T extends AnnotatedElement>
extends Object
implements AnnotatedElement, MetaAnnotated<T>
- Version:
- $Rev$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<Class<? extends Annotation>, MetaAnnotation<?>> protected final T
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
get()
<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) int
hashCode()
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) toString()
protected static Map
<Class<? extends Annotation>, MetaAnnotation<?>> unroll
(Annotation[] annotations) protected static Map
<Class<? extends Annotation>, MetaAnnotation<?>> unroll
(AnnotatedElement element) protected Annotation[][]
unrollParameters
(Annotation[][] parameterAnnotations) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Field Details
-
annotations
-
target
-
-
Constructor Details
-
MetaAnnotatedElement
-
-
Method Details
-
get
- Specified by:
get
in interfaceAnnotated<T extends AnnotatedElement>
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getMetaAnnotations
- Specified by:
getMetaAnnotations
in interfaceMetaAnnotated<T extends AnnotatedElement>
-
equals
-
hashCode
-
toString
-
unroll
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(AnnotatedElement element) -
unroll
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(Annotation[] annotations) -
unrollParameters
-