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

    • hashCodeComputed

      private boolean hashCodeComputed
    • cachedHashCode

      private int cachedHashCode
  • Constructor Details

    • CPInterfaceMethodRef

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

    • generateHashCode

      private void generateHashCode()
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class ConstantPoolEntry
    • 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