Class CPUTF8
java.lang.Object
kala.compress.harmony.unpack200.bytecode.ClassFileEntry
kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
kala.compress.harmony.unpack200.bytecode.CPUTF8
UTF8 constant pool entry, used for storing long Strings.
-
Field Summary
FieldsFields inherited from class kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndex, tagFields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate voidinthashCode()voidsetGlobalIndex(int index) toString()protected voidMethods inherited from class kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTagMethods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, write
-
Field Details
-
utf8
-
hashCodeComputed
private boolean hashCodeComputed -
cachedHashCode
private int cachedHashCode
-
-
Constructor Details
-
CPUTF8
-
CPUTF8
Creates a new CPUTF8 instance- Parameters:
utf8- TODOglobalIndex- index in CpBands- Throws:
NullPointerException- if utf8 is null
-
-
Method Details
-
equals
- Specified by:
equalsin classConstantPoolEntry
-
generateHashCode
private void generateHashCode() -
hashCode
public int hashCode()- Specified by:
hashCodein classConstantPoolEntry
-
setGlobalIndex
public void setGlobalIndex(int index) -
toString
- Specified by:
toStringin classClassFileEntry
-
underlyingString
-
writeBody
- Specified by:
writeBodyin classConstantPoolEntry- Throws:
IOException
-