public abstract class CPRef extends ConstantPoolEntry
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
cachedToString |
protected CPNameAndType |
nameAndType |
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 |
|---|
CPRef(byte type,
CPClass className,
CPNameAndType descriptor,
int globalIndex)
Create a new CPRef
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
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, hashCodeobjectHashCode, writeprotected CPNameAndType nameAndType
protected java.lang.String cachedToString
public CPRef(byte type, CPClass className, CPNameAndType descriptor, int globalIndex)
type - TODOclassName - TODOdescriptor - TODOglobalIndex - index in CpBandsjava.lang.NullPointerException - if descriptor or className is nullpublic boolean equals(java.lang.Object obj)
equals in class ConstantPoolEntryprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class ClassFileEntryprotected void resolve(ClassConstantPool pool)
ClassFileEntryresolve in class ClassFileEntrypool - TODOpublic java.lang.String toString()
toString in class ClassFileEntryprotected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
writeBody in class ConstantPoolEntryjava.io.IOException