Package org.apache.xbean.finder
Class MetaAnnotatedElement<T extends java.lang.reflect.AnnotatedElement>
- java.lang.Object
-
- org.apache.xbean.finder.MetaAnnotatedElement<T>
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement,Annotated<T>,MetaAnnotated<T>
- Direct Known Subclasses:
MetaAnnotatedClass,MetaAnnotatedConstructor,MetaAnnotatedField,MetaAnnotatedMethod
public class MetaAnnotatedElement<T extends java.lang.reflect.AnnotatedElement> extends java.lang.Object implements java.lang.reflect.AnnotatedElement, MetaAnnotated<T>
- Version:
- $Rev$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>>annotationsprotected Ttarget
-
Constructor Summary
Constructors Constructor Description MetaAnnotatedElement(T element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Tget()<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)java.lang.annotation.Annotation[]getAnnotations()java.lang.annotation.Annotation[]getDeclaredAnnotations()java.util.Collection<MetaAnnotation<?>>getMetaAnnotations()inthashCode()booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)java.lang.StringtoString()protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>>unroll(java.lang.annotation.Annotation[] annotations)protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>>unroll(java.lang.reflect.AnnotatedElement element)protected java.lang.annotation.Annotation[][]unrollParameters(java.lang.annotation.Annotation[][] parameterAnnotations)
-
-
-
Field Detail
-
annotations
protected final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> annotations
-
-
Constructor Detail
-
MetaAnnotatedElement
public MetaAnnotatedElement(T element)
-
-
Method Detail
-
getDeclaredAnnotations
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfacejava.lang.reflect.AnnotatedElement
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfacejava.lang.reflect.AnnotatedElement
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotationin interfacejava.lang.reflect.AnnotatedElement
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfacejava.lang.reflect.AnnotatedElement
-
getMetaAnnotations
public java.util.Collection<MetaAnnotation<?>> getMetaAnnotations()
- Specified by:
getMetaAnnotationsin interfaceMetaAnnotated<T extends java.lang.reflect.AnnotatedElement>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
unroll
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> unroll(java.lang.reflect.AnnotatedElement element)
-
unroll
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> unroll(java.lang.annotation.Annotation[] annotations)
-
unrollParameters
protected java.lang.annotation.Annotation[][] unrollParameters(java.lang.annotation.Annotation[][] parameterAnnotations)
-
-