Interface JavaDispatcher.Dispatcher

All Known Implementing Classes:
JavaDispatcher.Dispatcher.ForConstructor, JavaDispatcher.Dispatcher.ForContainerCreation, JavaDispatcher.Dispatcher.ForDefaultValue, JavaDispatcher.Dispatcher.ForDefaultValue.OfNonPrimitiveArray, JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray, JavaDispatcher.Dispatcher.ForInstanceCheck, JavaDispatcher.Dispatcher.ForNonStaticMethod, JavaDispatcher.Dispatcher.ForStaticMethod, JavaDispatcher.Dispatcher.ForUnresolvedMethod
Enclosing class:
JavaDispatcher<T>

protected static interface JavaDispatcher.Dispatcher
A dispatcher for handling a proxied method.
  • Method Details

    • invoke

      @MaybeNull Object invoke(Object[] argument) throws Throwable
      Invokes the proxied action.
      Parameters:
      argument - The arguments provided.
      Returns:
      The return value.
      Throws:
      Throwable - If any error occurs.
    • apply

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