|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.RawClass.InnerClass
public class InnerClass
Each InnerClass object describes one encoded inner
class name, its defining scope, its simple name, and a bitmask
of the originally declared, untransformed access flags.
AttributeInnerClasses| Field Summary | |
|---|---|
AccessFlags |
inner_class_access_flags
Originally declared, untransformed access_flags. |
int |
inner_class_info_index
CONSTANT_Class_info pointer to class with encoded name. |
int |
inner_name_index
CONSTANT_Utf8_info pointer to the simple name of the
encoded inner class. |
int |
outer_class_info_index
CONSTANT_Class_info pointer to the defining scope for
the inner class. |
protected ClassFile |
parent
ClassFile in which this attribute information is found. |
| Constructor Summary | |
|---|---|
InnerClass(ClassFile parent,
int inner_class_info_index,
int outer_class_info_index,
int inner_name_index,
AccessFlags inner_class_access_flags)
Constructor. |
|
| Method Summary | |
|---|---|
ConstantClass |
inner_class_info()
|
ConstantUtf8 |
inner_name_index()
|
String |
inner_name()
|
ConstantClass |
outer_class_info()
|
String |
toString()
Human-readable representation. |
void |
write(ClassDataOutputStream out)
Write to bytecode stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ClassFile parent
public int inner_class_info_index
CONSTANT_Class_info pointer to class with encoded name.
public int outer_class_info_index
CONSTANT_Class_info pointer to the defining scope for
the inner class.
If the inner class is not a member (of an outer class), then
the outer_class_info_index is zero.
public int inner_name_index
CONSTANT_Utf8_info pointer to the simple name of the
encoded inner class.
If the inner class is anonymous, its inner_name_index
is zero.
ERRATA: although the specification dictates the
above, current compilers seem to generate a pointer to a name
string of "" (that is, a zero-length string) instead.
public AccessFlags inner_class_access_flags
access_flags.
| Constructor Detail |
|---|
public InnerClass(ClassFile parent,
int inner_class_info_index,
int outer_class_info_index,
int inner_name_index,
AccessFlags inner_class_access_flags)
| Method Detail |
|---|
public void write(ClassDataOutputStream out)
throws IOException
IOExceptionpublic ConstantClass inner_class_info()
public ConstantClass outer_class_info()
public ConstantUtf8 inner_name_index()
public String inner_name()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||