Package jminusminus
Class CLEnclosingMethodAttribute
java.lang.Object
jminusminus.CLAttributeInfo
jminusminus.CLEnclosingMethodAttribute
Representation of EnclosingMethod_attribute structure.
-
Field Summary
Modifier and TypeFieldDescriptionint
EnclosingMethod_attribute.class_index item.int
EnclosingMethod_attribute.method_index item.Fields inherited from class jminusminus.CLAttributeInfo
attributeLength, attributeNameIndex
-
Constructor Summary
ConstructorDescriptionCLEnclosingMethodAttribute
(int attributeNameIndex, long attributeLength, int classIndex, int methodIndex) Construct a CLEnclosingMethodAttribute object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(CLOutputStream out) Write the contents of this attribute to the specified output stream.
-
Field Details
-
classIndex
public int classIndexEnclosingMethod_attribute.class_index item. -
methodIndex
public int methodIndexEnclosingMethod_attribute.method_index item.
-
-
Constructor Details
-
CLEnclosingMethodAttribute
public CLEnclosingMethodAttribute(int attributeNameIndex, long attributeLength, int classIndex, int methodIndex) Construct a CLEnclosingMethodAttribute object.- Parameters:
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.
-
-
Method Details
-
write
Write the contents of this attribute to the specified output stream.- Overrides:
write
in classCLAttributeInfo
- Parameters:
out
- output stream.- Throws:
IOException
- if an error occurs while writing.
-