Class CPNameAndType
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
org.apache.commons.compress.harmony.unpack200.bytecode.CPNameAndType
Name and Type pair constant pool entry.
-
Field Summary
Fields inherited from class org.apache.commons.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, globalIndexFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCPNameAndType(CPUTF8 name, CPUTF8 descriptor, int globalIndex) Constructs a new CPNameAndType. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ClassFileEntry[]inthashCode()intAnswers 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.toString()protected voidMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTagMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Constructor Details
-
CPNameAndType
Constructs a new CPNameAndType.- Parameters:
name- TODOdescriptor- TODOglobalIndex- index in CpBands- Throws:
NullPointerException- if name or descriptor is null
-
-
Method Details
-
equals
- Specified by:
equalsin classConstantPoolEntry
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntriesin classClassFileEntry
-
hashCode
- Specified by:
hashCodein classConstantPoolEntry
-
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
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries.- Overrides:
resolvein classClassFileEntry- Parameters:
pool- TODO
-
toString
- Specified by:
toStringin classClassFileEntry
-
writeBody
- Specified by:
writeBodyin classConstantPoolEntry- Throws:
IOException
-