Class CPInterfaceMethodRef


  • public class CPInterfaceMethodRef
    extends CPRef
    Interface method reference constant pool entry.
    • Field Detail

      • hashCodeComputed

        private boolean hashCodeComputed
      • cachedHashCode

        private int cachedHashCode
    • Constructor Detail

      • CPInterfaceMethodRef

        public CPInterfaceMethodRef​(CPClass className,
                                    CPNameAndType descriptor,
                                    int globalIndex)
    • Method Detail

      • generateHashCode

        private void generateHashCode()
      • 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