Package net.bytebuddy.utility.dispatcher
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA dispatcher for invoking a constructor.static classA dispatcher that creates an array.static enumA dispatcher that returns a fixed value.static classA dispatcher that performs an instance check.static classA dispatcher for invoking a non-static proxied method.static classA dispatcher for invoking a static proxied method.static classA dispatcher for an unresolved method. -
Method Summary
-
Method Details
-
invoke
Invokes the proxied action.- Parameters:
argument- The arguments provided.- Returns:
- The return value.
- Throws:
Throwable- If any error occurs.
-
apply
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.
-