public class CPClass extends ConstantPoolEntry
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndex
NONE
Constructor and Description |
---|
CPClass(CPUTF8 name,
int globalIndex)
Creates a new CPClass
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
int |
hashCode() |
protected void |
resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.
|
java.lang.String |
toString() |
protected void |
writeBody(java.io.DataOutputStream dos) |
doWrite, getGlobalIndex, getTag
objectHashCode, write
public java.lang.String name
public boolean equals(java.lang.Object obj)
equals
in class ConstantPoolEntry
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class ClassFileEntry
public int hashCode()
hashCode
in class ConstantPoolEntry
protected void resolve(ClassConstantPool pool)
ClassFileEntry
resolve
in class ClassFileEntry
pool
- TODOpublic java.lang.String toString()
toString
in class ClassFileEntry
public java.lang.String getName()
protected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
writeBody
in class ConstantPoolEntry
java.io.IOException