Class AnnotationValue
java.lang.Object
edu.umd.cs.findbugs.classfile.analysis.AnnotationValue
The "raw" version of an annotation appearing in a class file.
- Author:
- William Pugh
-
Constructor Summary
ConstructorDescriptionAnnotationValue
(ClassDescriptor annotationClass) Constructor.AnnotationValue
(String annotationClass) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.AnnotationVisitor
Get an AnnotationVisitor which can populate this AnnotationValue object.Get a descriptor specifying the type of an annotation element.Get the value of given annotation element.toString()
-
Constructor Details
-
AnnotationValue
Constructor.- Parameters:
annotationClass
- the annotation class
-
AnnotationValue
Constructor.- Parameters:
annotationClass
- JVM signature of the annotation class
-
-
Method Details
-
getAnnotationClass
- Returns:
- ClassDescriptor referring to the annotation class
-
getValue
Get the value of given annotation element. See AnnotationVisitor Javadoc for information on what the object returned could be.- Parameters:
name
- name of annotation element- Returns:
- the element value (primitive value, String value, enum value, Type, or array of one of the previous)
-
getDesc
Get a descriptor specifying the type of an annotation element.- Parameters:
name
- name of annotation element- Returns:
- descriptor specifying the type of the annotation element
-
toString
-
getAnnotationVisitor
public org.objectweb.asm.AnnotationVisitor getAnnotationVisitor()Get an AnnotationVisitor which can populate this AnnotationValue object.
-