org.apache.xbean.finder
Class MetaAnnotatedElement<T extends AnnotatedElement>

java.lang.Object
  extended by 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
protected  Map<Class<? extends Annotation>,MetaAnnotation<?>> annotations
           
protected  T target
           
 
Constructor Summary
MetaAnnotatedElement(T element)
           
 
Method Summary
 boolean equals(Object obj)
           
 T get()
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationClass)
           
 Annotation[] getAnnotations()
           
 Annotation[] getDeclaredAnnotations()
           
 Collection<MetaAnnotation<?>> getMetaAnnotations()
           
 int hashCode()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
           
 String toString()
           
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(AnnotatedElement element)
           
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(Annotation[] annotations)
           
protected  Annotation[][] unrollParameters(Annotation[][] parameterAnnotations)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

annotations

protected final Map<Class<? extends Annotation>,MetaAnnotation<?>> annotations

target

protected final T extends AnnotatedElement target
Constructor Detail

MetaAnnotatedElement

public MetaAnnotatedElement(T element)
Method Detail

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.