Package jminusminus
Class CLInnerClassesAttribute
java.lang.Object
jminusminus.CLAttributeInfo
jminusminus.CLInnerClassesAttribute
Representation of InnerClasses_attribute structure.
Note that this is just to register the inner classes with its parent class, and does not create the classes, which can be done using CLEmitter.
-
Field Summary
Modifier and TypeFieldDescriptionInnerClasses_attribute.classes item.int
InnerClasses_attribute.number_of_classes item.Fields inherited from class jminusminus.CLAttributeInfo
attributeLength, attributeNameIndex
-
Constructor Summary
ConstructorDescriptionCLInnerClassesAttribute
(int attributeNameIndex, long attributeLength, int numberOfClasses, ArrayList<CLInnerClassInfo> classes) Construct a CLInnerClassesAttribute object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(CLOutputStream out) Write the contents of this attribute to the specified output stream.
-
Field Details
-
numberOfClasses
public int numberOfClassesInnerClasses_attribute.number_of_classes item. -
classes
InnerClasses_attribute.classes item.
-
-
Constructor Details
-
CLInnerClassesAttribute
public CLInnerClassesAttribute(int attributeNameIndex, long attributeLength, int numberOfClasses, ArrayList<CLInnerClassInfo> classes) Construct a CLInnerClassesAttribute object.- Parameters:
attributeNameIndex
- InnerClasses_attribute.attribute_name_index item.attributeLength
- InnerClasses_attribute.attribute_length item.numberOfClasses
- InnerClasses_attribute.number_of_classes item.classes
- InnerClasses_attribute.classes 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.
-