class CLConstantValueAttribute extends CLAttributeInfo
Modifier and Type | Field and Description |
---|---|
int |
constantValueIndex
ConstantValue_attribute.constantvalue_index item.
|
attributeLength, attributeNameIndex
Constructor and Description |
---|
CLConstantValueAttribute(int attributeNameIndex,
long attributeLength,
int constantValueIndex)
Construct a CLConstantValueAttribute object.
|
Modifier and Type | Method and Description |
---|---|
void |
write(CLOutputStream out)
Write the contents of this attribute to the specified output stream.
|
void |
writeToStdOut(PrettyPrinter p)
Write the contents of this attribute to STDOUT in a format similar to
that of javap.
|
public int constantValueIndex
public CLConstantValueAttribute(int attributeNameIndex, long attributeLength, int constantValueIndex)
attributeNameIndex
- ConstantValue_attribute.attribute_name_index item.attributeLength
- ConstantValue_attribute.attribute_length item.constantValueIndex
- ConstantValue_attribute.constantvalue_index item.public void write(CLOutputStream out) throws IOException
CLAttributeInfo
write
in class CLAttributeInfo
out
- output stream.IOException
- if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLAttributeInfo
writeToStdOut
in class CLAttributeInfo
p
- for pretty printing with indentation.