public class SimpleElementValueGen 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| Modifier | Constructor and Description |
|---|---|
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
boolean value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
byte value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
char value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
double value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
float value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
int value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
long value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
short value) |
|
SimpleElementValueGen(int type,
ConstantPoolGen cpGen,
String value) |
protected |
SimpleElementValueGen(int type,
int idx,
ConstantPoolGen cpGen)
Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied
index is correct.
|
|
SimpleElementValueGen(SimpleElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries)
The boolean controls whether we copy info from the 'old' constant pool to the 'new'.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DataOutputStream dos) |
ElementValue |
getElementValue()
Return immutable variant
|
int |
getIndex() |
int |
getValueInt() |
String |
getValueString() |
String |
stringifyValue() |
copy, getConstantPool, getElementValueType, readElementValuepublic SimpleElementValueGen(int type, ConstantPoolGen cpGen, boolean value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, byte value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, char value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, double value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, float value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, int value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, long value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, short value)
public SimpleElementValueGen(int type, ConstantPoolGen cpGen, String value)
protected SimpleElementValueGen(int type, int idx, ConstantPoolGen cpGen)
public SimpleElementValueGen(SimpleElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
public void dump(DataOutputStream dos) throws IOException
dump in class ElementValueGenIOExceptionpublic ElementValue getElementValue()
getElementValue in class ElementValueGenpublic int getIndex()
public int getValueInt()
public String getValueString()
public String stringifyValue()
stringifyValue in class ElementValueGenCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.