All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Attribute.InnerClass

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Attribute.InnerClass

public class InnerClass
extends Object
Each InnerClass object describes one encoded inner class name, its defining scope, its simple name, and a bitmask of the originally declared, untransformed access flags.

Version:
$Id: InnerClass.java,v 1.2 1998/10/11 03:01:13 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
"Inner, AttributeInnerClasses

Variable Index

 o inner_class_access_flags
Originally declared, untransformed access_flags.
 o inner_class_info_index
CONSTANT_Class_info pointer to class with encoded name.
 o inner_name_index
CONSTANT_Utf8_info pointer to the simple name of the encoded inner class.
 o outer_class_info_index
CONSTANT_Class_info pointer to the defining scope for the inner class.
 o parent
ClassFile in which this attribute information is found.

Constructor Index

 o InnerClass(ClassFile, int, int, int, AccessFlags)
Constructor.

Method Index

 o inner_class_info()
 o inner_name()
 o inner_name_index()
 o outer_class_info()
 o toString()
Human-readable representation.
 o write(ClassDataOutputStream)
Write to bytecode stream.

Variables

 o parent
 protected ClassFile parent
ClassFile in which this attribute information is found.

 o inner_class_info_index
 public int inner_class_info_index
CONSTANT_Class_info pointer to class with encoded name.

 o outer_class_info_index
 public int outer_class_info_index
CONSTANT_Class_info pointer to the defining scope for the inner class. If the inner class is not a member (of an outer class), then the outer_class_info_index is zero.

 o inner_name_index
 public int inner_name_index
CONSTANT_Utf8_info pointer to the simple name of the encoded inner class. If the inner class is anonymous, its inner_name_index is zero.

ERRATA: although the specification dictates the above, current compilers seem to generate a pointer to a name string of "" (that is, a zero-length string) instead.

 o inner_class_access_flags
 public AccessFlags inner_class_access_flags
Originally declared, untransformed access_flags.

Constructors

 o InnerClass
 public InnerClass(ClassFile parent,
                   int inner_class_info_index,
                   int outer_class_info_index,
                   int inner_name_index,
                   AccessFlags inner_class_access_flags)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to bytecode stream.

 o inner_class_info
 public ConstantClass inner_class_info()
 o outer_class_info
 public ConstantClass outer_class_info()
 o inner_name_index
 public ConstantUtf8 inner_name_index()
 o inner_name
 public String inner_name()
 o toString
 public String toString()
Human-readable representation.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index