All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DE.fub.inf.JVM.JavaClass.InnerClass

java.lang.Object
   |
   +----DE.fub.inf.JVM.JavaClass.InnerClass

public final class InnerClass
extends Object
implements Constants
This class represents a inner class attribute, i.e. the class indices of the inner and outer classes, the name and the attributes of the inner class.

Version:
970922
Author:
M. Dahm
See Also:
InnerClasses

Constructor Index

 o InnerClass()
Empty constructor, all attributes have to be defined via `setXXX' methods.
 o InnerClass(InnerClass)
Initialize from another object.
 o InnerClass(short, short, short, short)

Method Index

 o accept(Visitor)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
 o dump(DataOutputStream)
Dump inner class attribute to file stream in binary format.
 o getInnerAccessFlags()
 o getInnerClassIndex()
 o getInnerNameIndex()
 o getOuterClassIndex()
 o setInnerAccessFlags(short)
 o setInnerClassIndex(short)
 o setInnerNameIndex(short)
 o setOuterClassIndex(short)
 o toString()
 o toString(ConstantPool)

Constructors

 o InnerClass
 public InnerClass()
Empty constructor, all attributes have to be defined via `setXXX' methods. Use at your own risk.

 o InnerClass
 public InnerClass(InnerClass c)
Initialize from another object.

 o InnerClass
 public InnerClass(short inner_class_index,
                   short outer_class_index,
                   short inner_name_index,
                   short inner_access_flags)
Parameters:
inner_class_index - Class index in constant pool of inner class
outer_class_index - Class index in constant pool of outer class
inner_name_index - Name index in constant pool of inner class
inner_access_flags - Access flags of inner class

Methods

 o accept
 public void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v - Visitor object
 o dump
 public final void dump(DataOutputStream file) throws IOException
Dump inner class attribute to file stream in binary format.

Parameters:
file - Output file stream
 o getInnerAccessFlags
 public final short getInnerAccessFlags()
Returns:
access flags of inner class.
 o getInnerClassIndex
 public final short getInnerClassIndex()
Returns:
class index of inner class.
 o getInnerNameIndex
 public final short getInnerNameIndex()
Returns:
name index of inner class.
 o getOuterClassIndex
 public final short getOuterClassIndex()
Returns:
class index of outer class.
 o setInnerAccessFlags
 public final void setInnerAccessFlags(short inner_access_flags)
 o setInnerClassIndex
 public final void setInnerClassIndex(short inner_class_index)
 o setInnerNameIndex
 public final void setInnerNameIndex(short inner_name_index)
 o setOuterClassIndex
 public final void setOuterClassIndex(short outer_class_index)
 o toString
 public final String toString()
Returns:
String representation.
Overrides:
toString in class Object
 o toString
 public final String toString(ConstantPool constant_pool)
Returns:
Resolved string representation

All Packages  Class Hierarchy  This Package  Previous  Next  Index