|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.InnerClassInfo
This class represents a single entry in the array of classes stored inside an InnerClasses attribute. See JVM2, 4.7.5.
InnerClassTable| Field Summary | |
private ClassConstant |
innerClass
|
private short |
modifiers
|
private ClassConstant |
outerClass
|
private AsciiConstant |
simpleName
|
| Constructor Summary | |
InnerClassInfo(DataInput in,
ConstantPool cp)
Create a classes entry within an InnerClasses attribute.c |
|
InnerClassInfo(String innerClass,
String outerClass,
String simpleName,
short modifiers)
Create a classes entry within an InnerClasses attribute. |
|
| Method Summary | |
int |
compareTo(Object o)
|
short |
getModifiers()
Return the modifiers bit-mask of this class |
String |
getQualifiedName()
Return the qualified name of this class |
boolean |
isAnonymous()
Returns true if this represents an InnerClasses attribute entry for an anonymous class. |
boolean |
isMember()
Returns true if this represents an InnerClasses attribute entry for a member type of the class file in which the attribute appears. |
String |
outerClassName()
Return the name of the outer class of this. |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
String |
toString()
|
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private ClassConstant innerClass
private ClassConstant outerClass
private AsciiConstant simpleName
private short modifiers
| Constructor Detail |
public InnerClassInfo(String innerClass,
String outerClass,
String simpleName,
short modifiers)
innerClass - the encoded name of the (inner) classouterClass - the defining scope of the (inner) classsimpleName - the simple name of the (inner) classmodifiers - access permission to and properties of the class
public InnerClassInfo(DataInput in,
ConstantPool cp)
throws IOException
in - the stream to read fromcp - the constant pool
IOException - an io problem has occured| Method Detail |
public String getQualifiedName()
public String outerClassName()
public short getModifiers()
public boolean isAnonymous()
public boolean isMember()
public String toString()
toString in class Object
public int compareTo(Object o)
throws ClassCastException
compareTo in interface ComparableClassCastExceptionvoid resolveConstants(ConstantPool cp)
cp - the constant pool for this class
void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||