Class MethodHandle


  • public class MethodHandle
    extends Object
    The reference kind and pool index pair that makes up a CONSTANT_MethodHandle entry.
    • Constructor Detail

      • MethodHandle

        public MethodHandle​(int referenceKind,
                            int referenceIndex)
        Creates a method handle descriptor.
        Parameters:
        referenceKind - the JVMS reference kind, 1 through 9
        referenceIndex - pool index of the field, method or interface method referred to
    • Method Detail

      • getReferenceKind

        public int getReferenceKind()
        Returns:
        the reference kind
      • getReferenceIndex

        public int getReferenceIndex()
        Returns:
        the reference index