public class CPNameAndType extends ConstantPoolEntry
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 |
|---|
CPNameAndType(CPUTF8 name,
CPUTF8 descriptor,
int globalIndex)
Create a new CPNameAndType
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
int |
hashCode() |
int |
invokeInterfaceCount()
Answers the invokeinterface count argument when the receiver is treated as an invokeinterface target.
|
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 CPNameAndType(CPUTF8 name, CPUTF8 descriptor, int globalIndex)
name - TODOdescriptor - TODOglobalIndex - - index in CpBandsNullPointerException - if name or descriptor is nullprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class ClassFileEntryprotected void resolve(ClassConstantPool pool)
ClassFileEntryresolve in class ClassFileEntrypool - TODOprotected void writeBody(DataOutputStream dos) throws IOException
writeBody in class ConstantPoolEntryIOExceptionpublic String toString()
toString in class ClassFileEntrypublic int hashCode()
hashCode in class ConstantPoolEntrypublic boolean equals(Object obj)
equals in class ConstantPoolEntrypublic int invokeInterfaceCount()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.