Package javassist.bytecode.annotation
Class ArrayMemberValue
java.lang.Object
javassist.bytecode.annotation.MemberValue
javassist.bytecode.annotation.ArrayMemberValue
Array member.
- Author:
- Bill Burke, Shigeru Chiba
-
Constructor Summary
ConstructorsConstructorDescriptionArrayMemberValue(MemberValue t, ConstPool cp) Constructs an array.Constructs an array. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MemberValueVisitor visitor) Accepts a visitor.getType()Obtains the type of the elements.getValue()Obtains the elements of the array.voidrenameClass(String oldname, String newname) voidrenameClass(Map<String, String> classnames) voidsetValue(MemberValue[] elements) Sets the elements of the array.toString()Obtains the string representation of this object.voidwrite(AnnotationsWriter writer) Writes the value.
-
Constructor Details
-
ArrayMemberValue
Constructs an array. The initial value or type are not specified. -
ArrayMemberValue
Constructs an array. The initial value is not specified.- Parameters:
t- the type of the array elements.
-
-
Method Details
-
renameClass
- Overrides:
renameClassin classMemberValue
-
renameClass
- Overrides:
renameClassin classMemberValue
-
getType
Obtains the type of the elements.- Returns:
- null if the type is not specified.
-
getValue
Obtains the elements of the array. -
setValue
Sets the elements of the array. -
toString
Obtains the string representation of this object. -
write
Writes the value.- Specified by:
writein classMemberValue- Throws:
IOException
-
accept
Accepts a visitor.- Specified by:
acceptin classMemberValue
-