public class CPUTF8 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 |
|---|
CPUTF8(String string) |
CPUTF8(String utf8,
int globalIndex)
Creates a new CPUTF8 instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setGlobalIndex(int index) |
String |
toString() |
String |
underlyingString() |
protected void |
writeBody(DataOutputStream dos) |
doWrite, getGlobalIndex, getTaggetNestedClassFileEntries, objectHashCode, resolve, writepublic CPUTF8(String utf8, int globalIndex)
utf8 - TODOglobalIndex - - index in CpBandsNullPointerException - if utf8 is nullpublic boolean equals(Object obj)
equals in class ConstantPoolEntrypublic int hashCode()
hashCode in class ConstantPoolEntrypublic void setGlobalIndex(int index)
public String toString()
toString in class ClassFileEntrypublic String underlyingString()
protected void writeBody(DataOutputStream dos) throws IOException
writeBody in class ConstantPoolEntryIOExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.