javassist.bytecode.annotation

Class AnnotationMemberValue

public class AnnotationMemberValue extends MemberValue

Nested annotation.

Author: Bill Burke Shigeru Chiba

Constructor Summary
AnnotationMemberValue(ConstPool cp)
Constructs an annotation member.
AnnotationMemberValue(Annotation a, ConstPool cp)
Constructs an annotation member.
Method Summary
voidaccept(MemberValueVisitor visitor)
Accepts a visitor.
AnnotationgetValue()
Obtains the value.
voidsetValue(Annotation newValue)
Sets the value of this member.
StringtoString()
Obtains the string representation of this object.
voidwrite(AnnotationsWriter writer)
Writes the value.

Constructor Detail

AnnotationMemberValue

public AnnotationMemberValue(ConstPool cp)
Constructs an annotation member. The initial value is not specified.

AnnotationMemberValue

public AnnotationMemberValue(Annotation a, ConstPool cp)
Constructs an annotation member. The initial value is specified by the first parameter.

Method Detail

accept

public void accept(MemberValueVisitor visitor)
Accepts a visitor.

getValue

public Annotation getValue()
Obtains the value.

setValue

public void setValue(Annotation newValue)
Sets the value of this member.

toString

public String toString()
Obtains the string representation of this object.

write

public void write(AnnotationsWriter writer)
Writes the value.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.