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
ConstructorDescriptionArrayMemberValue
(MemberValue t, ConstPool cp) Constructs an array.Constructs an array. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(MemberValueVisitor visitor) Accepts a visitor.getType()
Obtains the type of the elements.getValue()
Obtains the elements of the array.void
renameClass
(String oldname, String newname) void
renameClass
(Map<String, String> classnames) void
setValue
(MemberValue[] elements) Sets the elements of the array.toString()
Obtains the string representation of this object.void
write
(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:
renameClass
in classMemberValue
-
renameClass
- Overrides:
renameClass
in 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:
write
in classMemberValue
- Throws:
IOException
-
accept
Accepts a visitor.- Specified by:
accept
in classMemberValue
-