Class CPNameAndType
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- kala.compress.harmony.unpack200.bytecode.ConstantPoolEntry
-
- kala.compress.harmony.unpack200.bytecode.CPNameAndType
-
public class CPNameAndType extends ConstantPoolEntry
Name and Type pair constant pool entry.
-
-
Field Summary
Fields Modifier and Type Field Description private intcachedHashCode(package private) CPUTF8descriptor(package private) intdescriptorIndexprivate booleanhashCodeComputed(package private) CPUTF8name(package private) 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
-
-
Constructor Summary
Constructors Constructor Description CPNameAndType(CPUTF8 name, CPUTF8 descriptor, int globalIndex)Constructs a new CPNameAndType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)private voidgenerateHashCode()protected ClassFileEntry[]getNestedClassFileEntries()inthashCode()intinvokeInterfaceCount()Answers the invokeinterface count argument when the receiver is treated as an invokeinterface target.protected voidresolve(ClassConstantPool pool)Allows the constant pool entries to resolve their nested entries.java.lang.StringtoString()protected voidwriteBody(java.io.DataOutputStream dos)-
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
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin classConstantPoolEntry
-
generateHashCode
private void generateHashCode()
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
- Overrides:
getNestedClassFileEntriesin classClassFileEntry
-
hashCode
public int hashCode()
- Specified by:
hashCodein classConstantPoolEntry
-
invokeInterfaceCount
public int invokeInterfaceCount()
Answers the invokeinterface count argument when the receiver is treated as an invokeinterface target. This value is not meaningful if the receiver is not an invokeinterface target.- Returns:
- count
-
resolve
protected void resolve(ClassConstantPool pool)
Description copied from class:ClassFileEntryAllows 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
-
-