Package javassist.bytecode.annotation
Class ArrayMemberValue
java.lang.Object
javassist.bytecode.annotation.MemberValue
javassist.bytecode.annotation.ArrayMemberValue
Array member.
-
Field Summary
FieldsFields inherited from class javassist.bytecode.annotation.MemberValue
cp, tag
-
Constructor Summary
ConstructorsConstructorDescriptionArrayMemberValue
(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.(package private) Class
<?> getType
(ClassLoader cl) getValue()
Obtains the elements of the array.(package private) Object
getValue
(ClassLoader cl, ClassPool cp, Method method) Returns the value.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.Methods inherited from class javassist.bytecode.annotation.MemberValue
loadClass
-
Field Details
-
type
MemberValue type -
values
MemberValue[] values
-
-
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
-
getValue
Description copied from class:MemberValue
Returns the value. If the value type is a primitive type, the returned value is boxed.- Specified by:
getValue
in classMemberValue
- Throws:
ClassNotFoundException
-
getType
- Specified by:
getType
in classMemberValue
- Throws:
ClassNotFoundException
-
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
-