class CLEnclosingMethodAttribute extends CLAttributeInfo
| Modifier and Type | Field and Description |
|---|---|
int |
classIndex
EnclosingMethod_attribute.class_index item.
|
int |
methodIndex
EnclosingMethod_attribute.method_index item.
|
attributeLength, attributeNameIndex| Constructor and Description |
|---|
CLEnclosingMethodAttribute(int attributeNameIndex,
long attributeLength,
int classIndex,
int methodIndex)
Construct a CLEnclosingMethodAttribute 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 classIndex
public int methodIndex
public CLEnclosingMethodAttribute(int attributeNameIndex,
long attributeLength,
int classIndex,
int methodIndex)
attributeNameIndex - EnclosingMethod_attribute.attribute_name_index item.attributeLength - EnclosingMethod_attribute.attribute_length item.classIndex - EnclosingMethod_attribute.class_index item.methodIndex - EnclosingMethod_attribute.method_index item.public void write(CLOutputStream out) throws IOException
CLAttributeInfowrite in class CLAttributeInfoout - output stream.IOException - if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLAttributeInfowriteToStdOut in class CLAttributeInfop - for pretty printing with indentation.