public class ArrayMemberValue extends MemberValue
| Modifier and Type | Field and Description |
|---|---|
(package private) MemberValue |
type |
(package private) MemberValue[] |
values |
cp, tag| Constructor and Description |
|---|
ArrayMemberValue(ConstPool cp)
Constructs an array.
|
ArrayMemberValue(MemberValue t,
ConstPool cp)
Constructs an array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
MemberValue |
getType()
Obtains the type of the elements.
|
(package private) java.lang.Class |
getType(java.lang.ClassLoader cl) |
MemberValue[] |
getValue()
Obtains the elements of the array.
|
(package private) java.lang.Object |
getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method method)
Returns the value.
|
void |
setValue(MemberValue[] elements)
Sets the elements of the array.
|
java.lang.String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
loadClassMemberValue type
MemberValue[] values
public ArrayMemberValue(ConstPool cp)
public ArrayMemberValue(MemberValue t, ConstPool cp)
t - the type of the array elements.java.lang.Object getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method method)
throws java.lang.ClassNotFoundException
MemberValuegetValue in class MemberValuejava.lang.ClassNotFoundExceptionjava.lang.Class getType(java.lang.ClassLoader cl)
throws java.lang.ClassNotFoundException
getType in class MemberValuejava.lang.ClassNotFoundExceptionpublic MemberValue getType()
public MemberValue[] getValue()
public void setValue(MemberValue[] elements)
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(AnnotationsWriter writer) throws java.io.IOException
write in class MemberValuejava.io.IOExceptionpublic void accept(MemberValueVisitor visitor)
accept in class MemberValue