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<ElementValueGen> |
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<ElementValueGen> getElementValues()
public int getElementValuesSize()
public void addElement(ElementValueGen gen)
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.