Class CPString
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
-
- kala.compress.harmony.unpack200.bytecode.CPConstant
-
- kala.compress.harmony.unpack200.bytecode.CPString
-
public class CPString extends CPConstant
String constant pool entry.
-
-
Field Summary
Fields Modifier and Type Field Description private intcachedHashCodeprivate booleanhashCodeComputedprivate CPUTF8nameprivate intnameIndex-
Fields 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, tag
-
Fields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidgenerateHashCode()protected ClassFileEntry[]getNestedClassFileEntries()inthashCode()protected voidresolve(ClassConstantPool pool)Allows the constant pool entries to resolve their nested entriesjava.lang.StringtoString()protected voidwriteBody(java.io.DataOutputStream dos)-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.CPConstant
equals, getValue
-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTag
-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
-
-
-
Field Detail
-
nameIndex
private transient int nameIndex
-
name
private final CPUTF8 name
-
hashCodeComputed
private boolean hashCodeComputed
-
cachedHashCode
private int cachedHashCode
-
-
Constructor Detail
-
CPString
public CPString(CPUTF8 value, int globalIndex)
-
-
Method Detail
-
generateHashCode
private void generateHashCode()
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
- Overrides:
getNestedClassFileEntriesin classClassFileEntry
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCPConstant
-
resolve
protected void resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries- Overrides:
resolvein classClassFileEntry- Parameters:
pool- TODO
-
toString
public java.lang.String toString()
- Specified by:
toStringin classClassFileEntry
-
writeBody
protected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException- Specified by:
writeBodyin classConstantPoolEntry- Throws:
java.io.IOException
-
-