public abstract class CPRef extends ConstantPoolEntry
Modifier and Type | Field and Description |
---|---|
protected 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, globalIndex
NONE
Constructor and Description |
---|
CPRef(byte type,
CPClass className,
CPNameAndType descriptor,
int globalIndex)
Create a new CPRef
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
protected void |
resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.
|
String |
toString() |
protected void |
writeBody(DataOutputStream dos) |
doWrite, getGlobalIndex, getTag, hashCode
objectHashCode, write
protected CPNameAndType nameAndType
protected String cachedToString
public CPRef(byte type, CPClass className, CPNameAndType descriptor, int globalIndex)
type
- TODOclassName
- TODOdescriptor
- TODOglobalIndex
- index in CpBandsNullPointerException
- if descriptor or className is nullpublic boolean equals(Object obj)
equals
in class ConstantPoolEntry
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class ClassFileEntry
protected void resolve(ClassConstantPool pool)
ClassFileEntry
resolve
in class ClassFileEntry
pool
- TODOpublic String toString()
toString
in class ClassFileEntry
protected void writeBody(DataOutputStream dos) throws IOException
writeBody
in class ConstantPoolEntry
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.