org.apache.bcel.classfile
public final class ConstantValue extends Attribute
See Also: Attribute
Constructor Summary | |
---|---|
ConstantValue(ConstantValue c)
Initialize from another object. | |
ConstantValue(int name_index, int length, int constantvalue_index, ConstantPool constant_pool) |
Method Summary | |
---|---|
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() |
Parameters: name_index Name index in constant pool length Content length in bytes constantvalue_index Index in constant pool constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this attribute
Parameters: file Output file stream
Throws: IOException
Returns: Index in constant pool of constant value.
Parameters: constantvalue_index the index info the constant pool of this constant value
Returns: String representation of constant value.