Class InvokeDynamic.WithImplicitType.OfInstance

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

protected static class InvokeDynamic.WithImplicitType.OfInstance extends InvokeDynamic.WithImplicitType
A step in the invoke dynamic domain specific language that allows to explicitly specify a field type for a reference value.
  • Field Details

    • value

      private final Object value
      The value that is supplied as the next argument to the bootstrapped method.
    • argumentProvider

      private final InvokeDynamic.InvocationProvider.ArgumentProvider argumentProvider
      An argument provider that represents the argument with an implicit type.
  • Constructor Details

    • OfInstance

      protected OfInstance(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, Object value)
      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.
      value - The value that is supplied as the next argument to the bootstrapped method.
  • Method Details