public class AnnotationMemberValue extends MemberValue
Modifier and Type | Field and Description |
---|---|
(package private) Annotation |
value |
cp, tag
Constructor and Description |
---|
AnnotationMemberValue(Annotation a,
ConstPool cp)
Constructs an annotation member.
|
AnnotationMemberValue(ConstPool cp)
Constructs an annotation member.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
(package private) java.lang.Class |
getType(java.lang.ClassLoader cl) |
Annotation |
getValue()
Obtains the value.
|
(package private) java.lang.Object |
getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m)
Returns the value.
|
void |
setValue(Annotation newValue)
Sets the value of this member.
|
java.lang.String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
loadClass
Annotation value
public AnnotationMemberValue(ConstPool cp)
public AnnotationMemberValue(Annotation a, ConstPool cp)
java.lang.Object getValue(java.lang.ClassLoader cl, ClassPool cp, java.lang.reflect.Method m) throws java.lang.ClassNotFoundException
MemberValue
getValue
in class MemberValue
java.lang.ClassNotFoundException
java.lang.Class getType(java.lang.ClassLoader cl) throws java.lang.ClassNotFoundException
getType
in class MemberValue
java.lang.ClassNotFoundException
public Annotation getValue()
public void setValue(Annotation newValue)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(AnnotationsWriter writer) throws java.io.IOException
write
in class MemberValue
java.io.IOException
public void accept(MemberValueVisitor visitor)
accept
in class MemberValue