|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.bcel.classfile.InnerClass
public final class 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.
InnerClasses
,
Serialized FormConstructor Summary | |
---|---|
InnerClass(InnerClass c)
Initialize from another object. |
|
InnerClass(int inner_class_index,
int outer_class_index,
int inner_name_index,
int inner_access_flags)
|
Method Summary | |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. |
InnerClass |
copy()
|
void |
dump(DataOutputStream file)
Dump inner class attribute to file stream in binary format. |
int |
getInnerAccessFlags()
|
int |
getInnerClassIndex()
|
int |
getInnerNameIndex()
|
int |
getOuterClassIndex()
|
void |
setInnerAccessFlags(int inner_access_flags)
|
void |
setInnerClassIndex(int inner_class_index)
|
void |
setInnerNameIndex(int inner_name_index)
|
void |
setOuterClassIndex(int outer_class_index)
|
String |
toString()
|
String |
toString(ConstantPool constant_pool)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InnerClass(InnerClass c)
public InnerClass(int inner_class_index, int outer_class_index, int inner_name_index, int inner_access_flags)
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 classMethod Detail |
---|
public void accept(Visitor v)
accept
in interface Node
v
- Visitor objectpublic final void dump(DataOutputStream file) throws IOException
file
- Output file stream
IOException
public final int getInnerAccessFlags()
public final int getInnerClassIndex()
public final int getInnerNameIndex()
public final int getOuterClassIndex()
public final void setInnerAccessFlags(int inner_access_flags)
inner_access_flags
- access flags for this inner classpublic final void setInnerClassIndex(int inner_class_index)
inner_class_index
- index into the constant pool for this classpublic final void setInnerNameIndex(int inner_name_index)
inner_name_index
- index into the constant pool for this class's namepublic final void setOuterClassIndex(int outer_class_index)
outer_class_index
- index into the constant pool for the owning classpublic final String toString()
toString
in class Object
public final String toString(ConstantPool constant_pool)
public InnerClass copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |