Klasse InnerClass
java.lang.Object
org.aspectj.apache.bcel.classfile.InnerClass
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:
-
Konstruktorübersicht
KonstruktorBeschreibungInnerClass
(int inner_class_index, int outer_class_index, int inner_name_index, int inner_access_flags) Initialize from another object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.copy()
final void
dump
(DataOutputStream file) Dump inner class attribute to file stream in binary format.final int
final int
final int
final int
final void
setInnerAccessFlags
(int inner_access_flags) final void
setInnerClassIndex
(int inner_class_index) final void
setInnerNameIndex
(int inner_name_index) final void
setOuterClassIndex
(int outer_class_index) final String
toString()
final String
toString
(ConstantPool constant_pool)
-
Konstruktordetails
-
InnerClass
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 classouter_class_index
- Class index in constant pool of outer classinner_name_index
- Name index in constant pool of inner classinner_access_flags
- Access flags of inner class
-
-
Methodendetails
-
accept
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. -
dump
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
-
toString
- Gibt zurück:
- Resolved string representation
-
copy
- Gibt zurück:
- deep copy of this object
-