Class MethodHandleConstant


  • public class MethodHandleConstant
    extends Constant
    Constant representing a method handle.
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodHandleConstant​(Constant[] pool, int referenceKind, int referenceIndex)
      Creates an instance for the specified method reference.
    • Constructor Detail

      • MethodHandleConstant

        public MethodHandleConstant​(Constant[] pool,
                                    int referenceKind,
                                    int referenceIndex)
        Creates an instance for the specified method reference.
        Parameters:
        pool - Constant pool. Needed to resolve references.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns constant type, reference kind, and index.
        Overrides:
        toString in class java.lang.Object