Package javassist.bytecode.annotation
Class AnnotationMemberValue
java.lang.Object
javassist.bytecode.annotation.MemberValue
javassist.bytecode.annotation.AnnotationMemberValue
Nested annotation.
-
Field Summary
FieldsFields inherited from class javassist.bytecode.annotation.MemberValue
cp, tag
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an annotation member.Constructs an annotation member. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(MemberValueVisitor visitor) Accepts a visitor.(package private) Class
<?> getType
(ClassLoader cl) getValue()
Obtains the value.(package private) Object
getValue
(ClassLoader cl, ClassPool cp, Method m) Returns the value.void
setValue
(Annotation newValue) Sets the value of this member.toString()
Obtains the string representation of this object.void
write
(AnnotationsWriter writer) Writes the value.Methods inherited from class javassist.bytecode.annotation.MemberValue
loadClass, renameClass, renameClass
-
Field Details
-
value
Annotation value
-
-
Constructor Details
-
AnnotationMemberValue
Constructs an annotation member. The initial value is not specified. -
AnnotationMemberValue
Constructs an annotation member. The initial value is specified by the first parameter.
-
-
Method Details
-
getValue
Description copied from class:MemberValue
Returns the value. If the value type is a primitive type, the returned value is boxed.- Specified by:
getValue
in classMemberValue
- Throws:
ClassNotFoundException
-
getType
- Specified by:
getType
in classMemberValue
- Throws:
ClassNotFoundException
-
getValue
Obtains the value. -
setValue
Sets the value of this member. -
toString
Obtains the string representation of this object. -
write
Writes the value.- Specified by:
write
in classMemberValue
- Throws:
IOException
-
accept
Accepts a visitor.- Specified by:
accept
in classMemberValue
-