public class CPClass extends ConstantPoolEntry
| Modifier and Type | Field and Description |
|---|---|
String |
name |
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndexNONE| Constructor and Description |
|---|
CPClass(CPUTF8 name,
int globalIndex)
Creates a new CPClass
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName() |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
int |
hashCode() |
protected void |
resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.
|
String |
toString() |
protected void |
writeBody(DataOutputStream dos) |
doWrite, getGlobalIndex, getTagobjectHashCode, writepublic CPClass(CPUTF8 name, int globalIndex)
name - TODOglobalIndex - index in CpBandsNullPointerException - if name is nullpublic boolean equals(Object obj)
equals in class ConstantPoolEntryprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class ClassFileEntrypublic int hashCode()
hashCode in class ConstantPoolEntryprotected void resolve(ClassConstantPool pool)
ClassFileEntryresolve in class ClassFileEntrypool - TODOpublic String toString()
toString in class ClassFileEntryprotected void writeBody(DataOutputStream dos) throws IOException
writeBody in class ConstantPoolEntryIOExceptionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.