class CLInnerClassesAttribute extends CLAttributeInfo
| Modifier and Type | Field and Description |
|---|---|
ArrayList<CLInnerClassInfo> |
classes
InnerClasses_attribute.classes item.
|
int |
numberOfClasses
InnerClasses_attribute.number_of_classes item.
|
attributeLength, attributeNameIndex| Constructor and Description |
|---|
CLInnerClassesAttribute(int attributeNameIndex,
long attributeLength,
int numberOfClasses,
ArrayList<CLInnerClassInfo> classes)
Construct a CLInnerClassesAttribute 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 numberOfClasses
public ArrayList<CLInnerClassInfo> classes
public CLInnerClassesAttribute(int attributeNameIndex,
long attributeLength,
int numberOfClasses,
ArrayList<CLInnerClassInfo> classes)
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.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.