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(java.lang.String string) |
CPUTF8(java.lang.String utf8,
int globalIndex)
Creates a new CPUTF8 instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
setGlobalIndex(int index) |
java.lang.String |
toString() |
java.lang.String |
underlyingString() |
protected void |
writeBody(java.io.DataOutputStream dos) |
doWrite, getGlobalIndex, getTag
getNestedClassFileEntries, objectHashCode, resolve, write
public CPUTF8(java.lang.String utf8, int globalIndex)
utf8
- TODOglobalIndex
- - index in CpBandsjava.lang.NullPointerException
- if utf8 is nullpublic CPUTF8(java.lang.String string)
public boolean equals(java.lang.Object obj)
equals
in class ConstantPoolEntry
public int hashCode()
hashCode
in class ConstantPoolEntry
public java.lang.String toString()
toString
in class ClassFileEntry
protected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
writeBody
in class ConstantPoolEntry
java.io.IOException
public java.lang.String underlyingString()
public void setGlobalIndex(int index)