javassist.bytecode.annotation

Class ArrayMemberValue

public class ArrayMemberValue extends MemberValue

Array member.

Author: Bill Burke Shigeru Chiba

Constructor Summary
ArrayMemberValue(ConstPool cp)
Constructs an array.
ArrayMemberValue(MemberValue t, ConstPool cp)
Constructs an array.
Method Summary
voidaccept(MemberValueVisitor visitor)
Accepts a visitor.
MemberValuegetType()
Obtains the type of the elements.
MemberValue[]getValue()
Obtains the elements of the array.
voidsetValue(MemberValue[] elements)
Sets the elements of the array.
StringtoString()
Obtains the string representation of this object.
voidwrite(AnnotationsWriter writer)
Writes the value.

Constructor Detail

ArrayMemberValue

public ArrayMemberValue(ConstPool cp)
Constructs an array. The initial value or type are not specified.

ArrayMemberValue

public ArrayMemberValue(MemberValue t, ConstPool cp)
Constructs an array. The initial value is not specified.

Parameters: t the type of the array elements.

Method Detail

accept

public void accept(MemberValueVisitor visitor)
Accepts a visitor.

getType

public MemberValue getType()
Obtains the type of the elements.

Returns: null if the type is not specified.

getValue

public MemberValue[] getValue()
Obtains the elements of the array.

setValue

public void setValue(MemberValue[] elements)
Sets the elements of the array.

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.