public class ArrayMemberValue extends MemberValue
| Constructor | Description |
|---|---|
ArrayMemberValue(MemberValue t,
ConstPool cp) |
Constructs an array.
|
ArrayMemberValue(ConstPool cp) |
Constructs an array.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(MemberValueVisitor visitor) |
Accepts a visitor.
|
MemberValue |
getType() |
Obtains the type of the elements.
|
MemberValue[] |
getValue() |
Obtains the elements of the array.
|
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.
|
public ArrayMemberValue(ConstPool cp)
public ArrayMemberValue(MemberValue t, ConstPool cp)
t - the type of the array elements.public 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 MemberValueJavassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.