public final class ConstantValue extends Attribute
Attribute,
Serialized Formconstant_pool, length, name_index, tag| Constructor and Description |
|---|
ConstantValue(ConstantValue c)
Initialize from another object.
|
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(DataOutputStream file)
Dump constant value attribute to file stream on binary format.
|
int |
getConstantValueIndex() |
void |
setConstantValueIndex(int constantvalue_index) |
String |
toString() |
addAttributeReader, clone, getConstantPool, getLength, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic ConstantValue(ConstantValue c)
public 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(DataOutputStream file) throws IOException
dump in class Attributefile - Output file streamIOExceptionpublic final int getConstantValueIndex()
public final void setConstantValueIndex(int constantvalue_index)
constantvalue_index. - public final String toString()
public Attribute copy(ConstantPool constant_pool)
Copyright © 2018–2021 mhoffrogge. All rights reserved.