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 and Description |
---|
ArrayElementValueGen(ArrayElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries) |
ArrayElementValueGen(ConstantPoolGen cp) |
ArrayElementValueGen(int type,
ElementValue[] datums,
ConstantPoolGen cpool) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(ElementValueGen gen) |
void |
dump(DataOutputStream dos) |
ElementValue |
getElementValue()
Return immutable variant of this ArrayElementValueGen
|
List |
getElementValues() |
int |
getElementValuesSize() |
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(DataOutputStream dos) throws IOException
dump
in class ElementValueGen
IOException
public String stringifyValue()
stringifyValue
in class ElementValueGen
public List getElementValues()
public int getElementValuesSize()
public void addElement(ElementValueGen gen)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.