Klasse InnerClass

java.lang.Object
org.aspectj.apache.bcel.classfile.InnerClass
Alle implementierten Schnittstellen:
Cloneable, Node

public final class InnerClass extends Object implements Cloneable, Node
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:
$Id: InnerClass.java,v 1.4 2009/09/10 15:35:05 aclement Exp $
Autor:
M. Dahm
Siehe auch:
  • Konstruktordetails

    • InnerClass

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

      public InnerClass(int inner_class_index, int outer_class_index, int inner_name_index, int inner_access_flags)
      Parameter:
      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
  • Methodendetails

    • accept

      public void accept(ClassVisitor 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.
      Angegeben von:
      accept in Schnittstelle Node
      Parameter:
      v - Visitor object
    • dump

      public final void dump(DataOutputStream file) throws IOException
      Dump inner class attribute to file stream in binary format.
      Parameter:
      file - Output file stream
      Löst aus:
      IOException
    • getInnerAccessFlags

      public final int getInnerAccessFlags()
      Gibt zurück:
      access flags of inner class.
    • getInnerClassIndex

      public final int getInnerClassIndex()
      Gibt zurück:
      class index of inner class.
    • getInnerNameIndex

      public final int getInnerNameIndex()
      Gibt zurück:
      name index of inner class.
    • getOuterClassIndex

      public final int getOuterClassIndex()
      Gibt zurück:
      class index of outer class.
    • setInnerAccessFlags

      public final void setInnerAccessFlags(int inner_access_flags)
      Parameter:
      inner_access_flags - .
    • setInnerClassIndex

      public final void setInnerClassIndex(int inner_class_index)
      Parameter:
      inner_class_index - .
    • setInnerNameIndex

      public final void setInnerNameIndex(int inner_name_index)
      Parameter:
      inner_name_index - .
    • setOuterClassIndex

      public final void setOuterClassIndex(int outer_class_index)
      Parameter:
      outer_class_index - .
    • toString

      public final String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      String representation.
    • toString

      public final String toString(ConstantPool constant_pool)
      Gibt zurück:
      Resolved string representation
    • copy

      public InnerClass copy()
      Gibt zurück:
      deep copy of this object