|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.annotation.Annotations
public final class Annotations
Utility class for annotation retrieval.
Note: Annotations are extracted out of ASMClassInfo
Note: caution when changing that to use reflection, since it might lead to load target class during aspect
system startup.
Constructor Summary | |
---|---|
Annotations()
|
Method Summary | |
---|---|
static Annotation |
getAnnotation(Class annotation,
Class klass)
Return the annotation with a specific name for a specific class. |
static Annotation |
getAnnotation(Class annotation,
Constructor constructor)
Return the annotation with a specific name for a specific constructor. |
static Annotation |
getAnnotation(Class annotation,
Field field)
Return the annotation with a specific name for a specific field. |
static Annotation |
getAnnotation(Class annotation,
Method method)
Return the annotation with a specific name for a specific method. |
static Annotation |
getAnnotation(String annotationName,
Class klass)
Return the annotation with a specific name for a specific class. |
static Annotation |
getAnnotation(String annotationName,
Constructor constructor)
Return the annotation with a specific name for a specific constructor. |
static Annotation |
getAnnotation(String annotationName,
Field field)
Return the annotation with a specific name for a specific field. |
static Annotation |
getAnnotation(String annotationName,
Method method)
Return the annotation with a specific name for a specific method. |
static List |
getAnnotationInfos(Class klass)
Return a list with the annotations for a specific class. |
static List |
getAnnotationInfos(Constructor constructor)
Return the annotations for a specific constructor. |
static List |
getAnnotationInfos(Field field)
Return the annotations for a specific field. |
static List |
getAnnotationInfos(Method method)
Return the annotations for a specific method. |
static List |
getAnnotations(Class annotation,
Class klass)
Return a list with the annotations with a specific name for a specific class. |
static List |
getAnnotations(Class annotation,
Constructor constructor)
Return a list with the annotations with a specific name for a specific constructor. |
static List |
getAnnotations(Class annotation,
Field field)
Return a list with the annotations with a specific name for a specific field. |
static List |
getAnnotations(Class annotation,
Method method)
Return a list with the annotations with a specific name for a specific method. |
static List |
getAnnotations(String annotationName,
Class klass)
Return a list with the annotations with a specific name for a specific class. |
static List |
getAnnotations(String annotationName,
Constructor constructor)
Return a list with the annotations with a specific name for a specific constructor. |
static List |
getAnnotations(String annotationName,
Field field)
Return a list with the annotations with a specific name for a specific field. |
static List |
getAnnotations(String annotationName,
Method method)
Return a list with the annotations with a specific name for a specific method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Annotations()
Method Detail |
---|
public static Annotation getAnnotation(String annotationName, Class klass)
annotationName
- the annotation nameklass
- the java.lang.Class object to find the annotation on.
public static Annotation getAnnotation(Class annotation, Class klass)
annotation
- the annotation classklass
- the java.lang.Class object to find the annotation on.
public static Annotation getAnnotation(String annotationName, Method method)
annotationName
- the annotation namemethod
- the java.lang.refect.Method object to find the annotation on.
public static Annotation getAnnotation(Class annotation, Method method)
annotation
- the annotation classmethod
- the java.lang.refect.Method object to find the annotation on.
public static Annotation getAnnotation(String annotationName, Constructor constructor)
annotationName
- the annotation nameconstructor
- the java.lang.refect.Constructor object to find the annotation on.
public static Annotation getAnnotation(Class annotation, Constructor constructor)
annotation
- the annotation classconstructor
- the java.lang.refect.Constructor object to find the annotation on.
public static Annotation getAnnotation(String annotationName, Field field)
annotationName
- the annotation namefield
- the java.lang.reflect.Field object to find the annotation on.
public static Annotation getAnnotation(Class annotation, Field field)
annotation
- the annotation classfield
- the java.lang.reflect.Field object to find the annotation on.
public static List getAnnotations(String annotationName, Class klass)
annotationName
- the annotation nameklass
- the java.lang.Class object to find the annotation on.
public static List getAnnotations(Class annotation, Class klass)
annotation
- the annotation classklass
- the java.lang.Class object to find the annotation on.
public static List getAnnotations(String annotationName, Method method)
annotationName
- the annotation namemethod
- the java.lang.refect.Method object to find the annotation on.
public static List getAnnotations(Class annotation, Method method)
annotation
- the annotation classmethod
- the java.lang.refect.Method object to find the annotation on.
public static List getAnnotations(String annotationName, Constructor constructor)
annotationName
- the annotation nameconstructor
- the java.lang.refect.Constructor object to find the annotation on.
public static List getAnnotations(Class annotation, Constructor constructor)
annotation
- the annotation classconstructor
- the java.lang.refect.Constructor object to find the annotation on.
public static List getAnnotations(String annotationName, Field field)
annotationName
- the annotation namefield
- the java.lang.reflect.Field object to find the annotation on.
public static List getAnnotations(Class annotation, Field field)
annotation
- the annotation classfield
- the java.lang.reflect.Field object to find the annotation on.
public static List getAnnotationInfos(Class klass)
AnnotationInfo
instance.
klass
- the java.lang.Class object to find the annotation on.
public static List getAnnotationInfos(Method method)
AnnotationInfo
instance.
method
- the java.lang.refect.Method object to find the annotation on.
public static List getAnnotationInfos(Constructor constructor)
AnnotationInfo
instance.
constructor
- the java.lang.reflect.Constructor object to find the annotation on.
public static List getAnnotationInfos(Field field)
AnnotationInfo
instance.
field
- the java.lang.reflect.Field object to find the annotation on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |