| java.lang.Object EDU.purdue.cs.bloat.file.Attribute EDU.purdue.cs.bloat.file.ConstantValue
ConstantValue | ConstantValue(int nameIndex, int length, int constantValueIndex)(Code) | | Creates a new ConstantValue from scratch
Parameters: nameIndex - The index in the constant pool of the UTF8 string"ConstantValue" Parameters: constantValueIndex - The index in the constant pool of the Constant containing theconstant value |
ConstantValue | public ConstantValue(DataInputStream in, int nameIndex, int length) throws IOException(Code) | | Constructor. Create a ConstantValue attribute from a data stream.
Parameters: in - The data stream of the class file. Parameters: nameIndex - The index into the constant pool of the name of the attribute. Parameters: length - The length of the attribute, excluding the header. exception: IOException - If an error occurs while reading. |
constantValueIndex | public int constantValueIndex()(Code) | | Returns the index into the constant pool of the constant value.
|
setConstantValueIndex | public void setConstantValueIndex(int index)(Code) | | Set the index into the constant pool of the constant value.
|
toString | public String toString()(Code) | | Converts the attribute to a string.
|
writeData | public void writeData(DataOutputStream out) throws IOException(Code) | | Write the attribute to a data stream.
Parameters: out - The data stream of the class file. |
|
|