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
FieldsModifier and TypeFieldDescriptionInnerClasses_attribute.classes item.intInnerClasses_attribute.number_of_classes item.Fields inherited from class jminusminus.CLAttributeInfo
attributeLength, attributeNameIndex -
Constructor Summary
ConstructorsConstructorDescriptionCLInnerClassesAttribute(int attributeNameIndex, long attributeLength, int numberOfClasses, ArrayList<CLInnerClassInfo> classes) Construct a CLInnerClassesAttribute object. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(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:
writein classCLAttributeInfo- Parameters:
out- output stream.- Throws:
IOException- if an error occurs while writing.
-