| Constructor and Description |
|---|
ConstantValue(java.io.DataInputStream in,
int nameIndex,
int length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
constantValueIndex()
Returns the index into the constant pool of the constant value.
|
void |
setConstantValueIndex(int index)
Set the index into the constant pool of the constant value.
|
java.lang.String |
toString()
Converts the attribute to a string.
|
void |
writeData(java.io.DataOutputStream out)
Write the attribute to a data stream.
|
public ConstantValue(java.io.DataInputStream in,
int nameIndex,
int length)
throws java.io.IOException
in - The data stream of the class file.nameIndex - The index into the constant pool of the name of the attribute.length - The length of the attribute, excluding the header.java.io.IOException - If an error occurs while reading.public void writeData(java.io.DataOutputStream out)
throws java.io.IOException
public int constantValueIndex()
public void setConstantValueIndex(int index)