org.apache.xbean.finder
Class MetaAnnotatedObject<T>
java.lang.Object
org.apache.xbean.finder.MetaAnnotatedObject<T>
- All Implemented Interfaces:
- java.lang.reflect.AnnotatedElement, Annotated<T>, MetaAnnotated<T>
- Direct Known Subclasses:
- MetaAnnotatedClass, MetaAnnotatedConstructor, MetaAnnotatedField, MetaAnnotatedMethod
public abstract class MetaAnnotatedObject<T>
- extends java.lang.Object
- implements MetaAnnotated<T>
- Version:
- $Rev$ $Date$
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.reflect.AnnotatedElement |
getDeclaredAnnotations |
annotations
protected final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> annotations
target
protected final T target
get
public T get()
- Specified by:
get in interface Annotated<T>
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresent in interface java.lang.reflect.AnnotatedElement
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations in interface java.lang.reflect.AnnotatedElement
getMetaAnnotations
public java.util.Collection<MetaAnnotation<?>> getMetaAnnotations()
- Specified by:
getMetaAnnotations in interface MetaAnnotated<T>
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
unroll
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> unroll(java.lang.Class<?> declaringClass,
java.lang.reflect.AnnotatedElement element)
Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.