Class BootstrapMethod


  • public class BootstrapMethod
    extends java.lang.Object
    https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.23
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ConstantMethodRef implMethod
      A direct method handle describing the implementation method which should be called
      private java.lang.String instantiatedMethodType
      The signature and return type that should be enforced dynamically at invocation time.
      private java.lang.String samMethodType
      Signature and return type of method to be implemented by the function object.
    • Constructor Summary

      Constructors 
      Constructor Description
      BootstrapMethod​(java.io.DataInputStream input, ConstantPool constantPool)
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConstantMethodRef getImplMethod()
      The real method in the parent class that implements the lambda expression
      java.lang.String getSamMethodType()
      Signature and return type of method to be implemented by the function object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • samMethodType

        private java.lang.String samMethodType
        Signature and return type of method to be implemented by the function object.
      • implMethod

        private ConstantMethodRef implMethod
        A direct method handle describing the implementation method which should be called
      • instantiatedMethodType

        private java.lang.String instantiatedMethodType
        The signature and return type that should be enforced dynamically at invocation time. This may be the same as samMethodType, or may be a specialization of it.
    • Constructor Detail

      • BootstrapMethod

        BootstrapMethod​(java.io.DataInputStream input,
                        ConstantPool constantPool)
                 throws java.io.IOException
        Create an instance.
        Throws:
        java.io.IOException
    • Method Detail

      • getSamMethodType

        public java.lang.String getSamMethodType()
        Signature and return type of method to be implemented by the function object.
        Returns:
        the signature
        See Also:
        parameter samMethodType
      • getImplMethod

        public ConstantMethodRef getImplMethod()
        The real method in the parent class that implements the lambda expression
        Returns:
        the method