Class JavaDispatcher.Dispatcher.ForContainerCreation

java.lang.Object
net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher.ForContainerCreation
All Implemented Interfaces:
JavaDispatcher.Dispatcher
Enclosing interface:
JavaDispatcher.Dispatcher

@Enhance public static class JavaDispatcher.Dispatcher.ForContainerCreation extends Object implements JavaDispatcher.Dispatcher
A dispatcher that creates an array.
  • Field Details

    • target

      private final Class<?> target
      The component type.
  • Constructor Details

    • ForContainerCreation

      protected ForContainerCreation(Class<?> target)
      Creates a dispatcher for an array creation.
      Parameters:
      target - The component type.
  • Method Details

    • invoke

      public Object invoke(Object[] argument)
      Invokes the proxied action.
      Specified by:
      invoke in interface JavaDispatcher.Dispatcher
      Parameters:
      argument - The arguments provided.
      Returns:
      The return value.
    • apply

      public int apply(org.objectweb.asm.MethodVisitor methodVisitor, Method method)
      Implements this dispatcher in a generated proxy.
      Specified by:
      apply in interface JavaDispatcher.Dispatcher
      Parameters:
      methodVisitor - The method visitor to implement the method with.
      method - The method being implemented.
      Returns:
      The maximal size of the operand stack.