|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.InnerClassInfo
A helper class for InnerClassTable. The inner class table contains an array this type. InnerClassInfo contains information about one specific inner class that is used in another class.
Constructor Summary | |
InnerClassInfo(java.io.DataInput in,
ConstantPool cp)
Create an entry in the inner class table from a class file stream. |
|
InnerClassInfo(java.lang.String innerClass,
java.lang.String outerClass,
java.lang.String simpleName,
short modifiers)
Create an entry in the inner class table. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares this object with another object. |
boolean |
equalsInnerClassInfo(InnerClassInfo other)
Compares with another InnerClassInfo object. |
ClassConstant |
getInnerClass()
Returns the FQN of the inner class. |
int |
getModifiers()
Returns the modifiers that the inner class had in the source code. |
ClassConstant |
getOuterClass()
Returns the FQN of the outer class, if it is a member class; else null . |
java.lang.String |
getQualifiedName()
Return the qualified name of this class. |
java.lang.String |
getSimpleName()
Returns the name that the class had in the source code, or null if it is an anonymous class. |
int |
hashCode()
Returns a hash code for this object. |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
(package private) void |
write(ConstantPool cp,
java.io.DataOutput out)
Write this class into the the file (out) getting data position from the constant pool. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public InnerClassInfo(java.lang.String innerClass, java.lang.String outerClass, java.lang.String simpleName, short modifiers)
innerClass
- The encoded name of the (inner) class.outerClass
- The defining scope of the (inner) class.simpleName
- The simple name of the (inner) class.modifiers
- Access permission to and properties of the class.public InnerClassInfo(java.io.DataInput in, ConstantPool cp) throws java.io.IOException
in
- The stream to read from.cp
- The constant pool.java.io.IOException
- An io problem has occured.Method Detail |
public int getModifiers()
public ClassConstant getOuterClass()
null
.public ClassConstant getInnerClass()
public java.lang.String getSimpleName()
public java.lang.String getQualifiedName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equalsInnerClassInfo(InnerClassInfo other)
public int hashCode()
hashCode
in class java.lang.Object
void resolveConstants(ConstantPool cp)
cp
- The constant pool for this class.void write(ConstantPool cp, java.io.DataOutput out) throws java.io.IOException
cp
- The constant pool that contain all data.out
- The file where to write this object info.java.io.IOException
- An io problem has occured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |