Class Invokedynamic

    • Field Detail

      • name

        private final java.lang.String name
        The name of the invokedynamic expression.
      • arguments

        private final java.util.List<? extends JavaConstant> arguments
        The constant arguments to the bootstrap method.
    • Constructor Detail

      • Invokedynamic

        public Invokedynamic​(java.lang.String name,
                             JavaConstant.MethodType type,
                             JavaConstant.MethodHandle bootstrap,
                             java.util.List<? extends JavaConstant> arguments)
        Creates a stack manipulation for a bootstrap method.
        Parameters:
        name - The name of the invokedynamic expression.
        type - The type that is requested for the target.
        bootstrap - A handle to the bootstrap method.
        arguments - The constant arguments to the bootstrap method.
    • Method Detail

      • apply

        public StackManipulation.Size apply​(org.objectweb.asm.MethodVisitor methodVisitor,
                                            Implementation.Context implementationContext)
        Applies the stack manipulation that is described by this instance.
        Parameters:
        methodVisitor - The method visitor used to write the method implementation to.
        implementationContext - The context of the current implementation.
        Returns:
        The changes to the size of the operand stack that are implied by this stack manipulation.