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, globalIndex
NONE
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, getTag
getNestedClassFileEntries, objectHashCode, resolve, write
public CPUTF8(String utf8, int globalIndex)
utf8
- TODOglobalIndex
- - index in CpBandsNullPointerException
- if utf8 is nullpublic boolean equals(Object obj)
equals
in class ConstantPoolEntry
public int hashCode()
hashCode
in class ConstantPoolEntry
public String toString()
toString
in class ClassFileEntry
protected void writeBody(DataOutputStream dos) throws IOException
writeBody
in class ConstantPoolEntry
IOException
public String underlyingString()
public void setGlobalIndex(int index)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.