Class CPInterfaceMethodRef
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.CPRef
org.apache.commons.compress.harmony.unpack200.bytecode.CPInterfaceMethodRef
Interface method reference constant pool entry.
-
Field Summary
FieldsFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.CPRef
cachedToString, className, classNameIndex, nameAndType, nameAndTypeIndexFields 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, globalIndex, tagFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCPInterfaceMethodRef(CPClass className, CPNameAndType descriptor, int globalIndex) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidinthashCode()intThis method answers the value this method will use for an invokeinterface call.Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.CPRef
equals, getNestedClassFileEntries, resolve, toString, writeBodyMethods 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
-
Field Details
-
hashCodeComputed
private boolean hashCodeComputed -
cachedHashCode
private int cachedHashCode
-
-
Constructor Details
-
CPInterfaceMethodRef
-
-
Method Details
-
generateHashCode
private void generateHashCode() -
hashCode
public int hashCode()- Specified by:
hashCodein classConstantPoolEntry
-
invokeInterfaceCount
public int invokeInterfaceCount()This method answers the value this method will use for an invokeinterface call. This is equal to 1 + the count of all the args, where longs and doubles count for 2 and all others count for 1.- Returns:
- integer count
-