All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.ClassFile.Raw.Attribute.AttributeInnerClasses
java.lang.Object
|
+----harpoon.ClassFile.Raw.Attribute.Attribute
|
+----harpoon.ClassFile.Raw.Attribute.AttributeInnerClasses
- public class AttributeInnerClasses
- extends Attribute
InnerClasses
attributes define the encodings of
bytecode names of inner classes. The attribute is stored in
the ClassFile
structure.
Each array element in the attribute records a class with an encoded
name, its defining scope, its simple name, and a bitmask of the
originally declared, untransformed access flags.
- Version:
- $Id: AttributeInnerClasses.java,v 1.3 1998/10/11 03:01:13 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- "Inner, InnerClass, Attribute, ClassFile
-
classes
- Each array element records a class with an encoded name,
its defining scope, its simple name, and its originally
declared access flags.
-
AttributeInnerClasses(ClassFile, int, InnerClass[])
- Constructor.
-
attribute_length()
- The value of the
attribute_length
item indicates
the length of the attribute, excluding the initial six bytes.
-
classes(int)
-
-
number_of_classes()
-
-
print(PrintWriter, int)
- Pretty-print this attribute structure.
-
write(ClassDataOutputStream)
- Write to bytecode stream.
classes
public InnerClass classes[]
- Each array element records a class with an encoded name,
its defining scope, its simple name, and its originally
declared access flags.
AttributeInnerClasses
public AttributeInnerClasses(ClassFile parent,
int attribute_name_index,
InnerClass classes[])
- Constructor.
attribute_length
public long attribute_length()
- The value of the
attribute_length
item indicates
the length of the attribute, excluding the initial six bytes.
- Overrides:
- attribute_length in class Attribute
number_of_classes
public int number_of_classes()
classes
public InnerClass classes(int i)
write
public void write(ClassDataOutputStream out) throws IOException
- Write to bytecode stream.
- Overrides:
- write in class Attribute
print
public void print(PrintWriter pw,
int indent)
- Pretty-print this attribute structure.
- Overrides:
- print in class Attribute
All Packages Class Hierarchy This Package Previous Next Index