All Packages Class Hierarchy This Package Previous Next Index
Class espresso.classfile.javaclass.InnerClass
java.lang.Object
|
+----espresso.classfile.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.
- See Also:
- InnerClasses
-
inner_access_flags
-
-
inner_class_index
-
-
inner_name_index
-
-
outer_class_index
-
-
InnerClass()
- Empty constructor, all attributes have to be defined via `setXXX'
methods.
-
InnerClass(DataInputStream)
- Construct object from file stream.
-
InnerClass(InnerClass)
- Initialize from another object.
-
InnerClass(int, int, int, int)
-
-
accept(Visitor)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
-
dump(DataOutputStream)
- Dump inner class attribute to file stream in binary format.
-
getInnerAccessFlags()
-
-
getInnerClassIndex()
-
-
getInnerNameIndex()
-
-
getOuterClassIndex()
-
-
setInnerAccessFlags(int)
-
-
setInnerClassIndex(int)
-
-
setInnerNameIndex(int)
-
-
setOuterClassIndex(int)
-
-
toString()
-
-
toString(ConstantPool)
-
inner_class_index
private int inner_class_index
outer_class_index
private int outer_class_index
inner_name_index
private int inner_name_index
inner_access_flags
private int inner_access_flags
InnerClass
public InnerClass()
- Empty constructor, all attributes have to be defined via `setXXX'
methods. Use at your own risk.
InnerClass
public InnerClass(InnerClass c)
- Initialize from another object.
InnerClass
InnerClass(DataInputStream file) throws IOException
- Construct object from file stream.
- Parameters:
- file - Input stream
InnerClass
public InnerClass(int inner_class_index,
int outer_class_index,
int inner_name_index,
int 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
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
dump
public final void dump(DataOutputStream file) throws IOException
- Dump inner class attribute to file stream in binary format.
- Parameters:
- file - Output file stream
getInnerAccessFlags
public final int getInnerAccessFlags()
- Returns:
- access flags of inner class.
getInnerClassIndex
public final int getInnerClassIndex()
- Returns:
- class index of inner class.
getInnerNameIndex
public final int getInnerNameIndex()
- Returns:
- name index of inner class.
getOuterClassIndex
public final int getOuterClassIndex()
- Returns:
- class index of outer class.
setInnerAccessFlags
public final void setInnerAccessFlags(int inner_access_flags)
setInnerClassIndex
public final void setInnerClassIndex(int inner_class_index)
setInnerNameIndex
public final void setInnerNameIndex(int inner_name_index)
setOuterClassIndex
public final void setOuterClassIndex(int outer_class_index)
toString
public final String toString()
- Returns:
- String representation.
- Overrides:
- toString in class Object
toString
public final String toString(ConstantPool constant_pool)
- Returns:
- Resolved string representation
All Packages Class Hierarchy This Package Previous Next Index