public class ArrayElementValueGen extends ElementValueGen
ANNOTATION, ARRAY, CLASS, cpGen, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type
Constructor | Description |
---|---|
ArrayElementValueGen(int type,
ElementValue[] datums,
ConstantPoolGen cpool) |
|
ArrayElementValueGen(ArrayElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries) |
|
ArrayElementValueGen(ConstantPoolGen cp) |
Modifier and Type | Method | Description |
---|---|---|
void |
addElement(ElementValueGen gen) |
|
void |
dump(java.io.DataOutputStream dos) |
|
ElementValue |
getElementValue() |
Return immutable variant of this ArrayElementValueGen
|
java.util.List<ElementValueGen> |
getElementValues() |
|
int |
getElementValuesSize() |
|
java.lang.String |
stringifyValue() |
copy, getConstantPool, getElementValueType, readElementValue
public ArrayElementValueGen(ConstantPoolGen cp)
public ArrayElementValueGen(int type, ElementValue[] datums, ConstantPoolGen cpool)
public ArrayElementValueGen(ArrayElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
value
- cpool
- public ElementValue getElementValue()
getElementValue
in class ElementValueGen
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
dump
in class ElementValueGen
java.io.IOException
public java.lang.String stringifyValue()
stringifyValue
in class ElementValueGen
public java.util.List<ElementValueGen> getElementValues()
public int getElementValuesSize()
public void addElement(ElementValueGen gen)