Class InvokeDynamic.WithImplicitType.OfArgument

All Implemented Interfaces:
InstrumentedType.Prepareable, Implementation, Implementation.Composable
Enclosing class:
InvokeDynamic.WithImplicitType

protected static class InvokeDynamic.WithImplicitType.OfArgument extends InvokeDynamic.WithImplicitType
An invoke dynamic implementation where the last argument is an implicitly typed method argument.
  • Field Details

    • index

      private final int index
      The index of the method argument.
  • Constructor Details

    • OfArgument

      protected OfArgument(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, int index)
      Creates a new invoke dynamic instance with an implicit field type for the provided value.
      Parameters:
      bootstrap - The bootstrap method or constructor.
      arguments - The arguments that are provided to the bootstrap method or constructor.
      invocationProvider - The target provided that identifies the method to be bootstrapped.
      terminationHandler - A handler that handles the method return.
      assigner - The assigner to be used.
      typing - Indicates if dynamic type castings should be attempted for incompatible assignments.
      index - The index of of the argument to supply to the bootstrapped method.
  • Method Details