Top Description Fields Constructors Methods
javassist.bytecode.annotation

public Class AnnotationMemberValue

extends MemberValue
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Method, javassist.ClassPool, javassist.bytecode.ConstPool

Nested annotation.
Authors
Bill Burke, Shigeru Chiba

Field Summary

Modifier and TypeField and Description
pack-priv Annotation
Inherited from javassist.bytecode.annotation.MemberValue:
cptag

Constructor Summary

AccessConstructor and Description
public
AnnotationMemberValue(ConstPool cp)

Constructs an annotation member.

public
AnnotationMemberValue(Annotation a, ConstPool cp)

Constructs an annotation member.

Method Summary

Modifier and TypeMethod and Description
public void
accept(MemberValueVisitor visitor)

Implements abstract javassist.bytecode.annotation.MemberValue.accept.

Accepts a visitor.

pack-priv Class<?>
pack-priv Object
public Annotation
getValue()

Obtains the value.

public void
setValue(Annotation newValue)

Sets the value of this member.

public String
toString()

Overrides java.lang.Object.toString.

Obtains the string representation of this object.

public void
write(AnnotationsWriter writer)

Implements abstract javassist.bytecode.annotation.MemberValue.write.

Writes the value.

Inherited from javassist.bytecode.annotation.MemberValue:
loadClassrenameClassrenameClass

Field Detail

valueback to summary
pack-priv Annotation value

Constructor Detail

AnnotationMemberValueback to summary
public AnnotationMemberValue(ConstPool cp)

Constructs an annotation member. The initial value is not specified.

AnnotationMemberValueback to summary
public AnnotationMemberValue(Annotation a, ConstPool cp)

Constructs an annotation member. The initial value is specified by the first parameter.

Method Detail

acceptback to summary
public void accept(MemberValueVisitor visitor)

Implements abstract javassist.bytecode.annotation.MemberValue.accept.

Accepts a visitor.

Annotations
@Override
getTypeback to summary
pack-priv Class<?> getType(ClassLoader cl) throws ClassNotFoundException

Implements abstract javassist.bytecode.annotation.MemberValue.getType.

Annotations
@Override
getValueback to summary
pack-priv Object getValue(ClassLoader cl, ClassPool cp, Method m) throws ClassNotFoundException

Implements abstract javassist.bytecode.annotation.MemberValue.getValue.

Doc from javassist.bytecode.annotation.MemberValue.getValue.

Returns the value. If the value type is a primitive type, the returned value is boxed.

Annotations
@Override
getValueback to summary
public Annotation getValue()

Obtains the value.

setValueback to summary
public void setValue(Annotation newValue)

Sets the value of this member.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Obtains the string representation of this object.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override
writeback to summary
public void write(AnnotationsWriter writer) throws IOException

Implements abstract javassist.bytecode.annotation.MemberValue.write.

Writes the value.

Annotations
@Override