public final class ConstantValue extends Attribute
Attribute| Modifier and Type | Field and Description |
|---|---|
private int |
constantvalue_index |
constant_pool, length, name_index, tag| Constructor and Description |
|---|
ConstantValue(ConstantValue c)
Initialize from another object.
|
ConstantValue(int name_index,
int length,
java.io.DataInput input,
ConstantPool constant_pool)
Construct object from input stream.
|
ConstantValue(int name_index,
int length,
int constantvalue_index,
ConstantPool constant_pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool _constant_pool) |
void |
dump(java.io.DataOutputStream file)
Dump constant value attribute to file stream on binary format.
|
int |
getConstantValueIndex() |
void |
setConstantValueIndex(int constantvalue_index) |
java.lang.String |
toString() |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic ConstantValue(ConstantValue c)
ConstantValue(int name_index,
int length,
java.io.DataInput input,
ConstantPool constant_pool)
throws java.io.IOException
name_index - Name index in constant poollength - Content length in bytesinput - Input streamconstant_pool - Array of constantsjava.io.IOExceptionpublic ConstantValue(int name_index,
int length,
int constantvalue_index,
ConstantPool constant_pool)
name_index - Name index in constant poollength - Content length in bytesconstantvalue_index - Index in constant poolconstant_pool - Array of constantspublic void accept(Visitor v)
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
public final int getConstantValueIndex()
public final void setConstantValueIndex(int constantvalue_index)
constantvalue_index - the index info the constant pool of this constant valuepublic final java.lang.String toString()
public Attribute copy(ConstantPool _constant_pool)