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 class
A dispatcher for invoking a constructor.static class
A dispatcher that creates an array.static enum
A dispatcher that returns a fixed value.static class
A dispatcher that performs an instance check.static class
A dispatcher for invoking a non-static proxied method.static class
A dispatcher for invoking a static proxied method.static class
A 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.
-