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$
annotations
protected final Map<Class<? extends Annotation>,MetaAnnotation<?>> annotations
target
protected final T extends AnnotatedElement target
MetaAnnotatedElement
public MetaAnnotatedElement(T element)
get
public T get()
- Specified by:
get in interface Annotated<T extends AnnotatedElement>
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations in interface AnnotatedElement
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresent in interface AnnotatedElement
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotation in interface AnnotatedElement
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations in interface AnnotatedElement
getMetaAnnotations
public Collection<MetaAnnotation<?>> getMetaAnnotations()
- Specified by:
getMetaAnnotations in interface MetaAnnotated<T extends AnnotatedElement>
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
unroll
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(AnnotatedElement element)
unroll
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(Annotation[] annotations)
unrollParameters
protected Annotation[][] unrollParameters(Annotation[][] parameterAnnotations)
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.