org.apache.bcel.classfile
public final class ConstantValue extends Attribute
Version: $Id: ConstantValue.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Attribute
Field Summary | |
---|---|
int | constantvalue_index |
Constructor Summary | |
---|---|
ConstantValue(ConstantValue c)
Initialize from another object. | |
ConstantValue(int name_index, int length, DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. | |
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 file Input stream constant_pool Array of constants
Throws: IOException
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.