InnerClassespublic final class InnerClasses extends Attribute This class is derived from Attribute and denotes that this class
is an Inner class of another.
to the source file of this class.
It is instantiated from the Attribute.readAttribute() method. |
Fields Summary |
---|
private InnerClass[] | inner_classes | private int | number_of_classes |
Constructors Summary |
---|
public InnerClasses(InnerClasses c)Initialize from another object. Note that both objects use the same
references (shallow copy). Use clone() for a physical copy.
this(c.getNameIndex(), c.getLength(), c.getInnerClasses(),
c.getConstantPool());
| public InnerClasses(int name_index, int length, InnerClass[] inner_classes, ConstantPool constant_pool)
super(Constants.ATTR_INNER_CLASSES, name_index, length, constant_pool);
setInnerClasses(inner_classes);
| InnerClasses(int name_index, int length, DataInputStream file, ConstantPool constant_pool)Construct object from file stream.
this(name_index, length, (InnerClass[])null, constant_pool);
number_of_classes = file.readUnsignedShort();
inner_classes = new InnerClass[number_of_classes];
for(int i=0; i < number_of_classes; i++)
inner_classes[i] = new InnerClass(file);
|
|