Package net.bytebuddy.utility.dispatcher
Class JavaDispatcher.Dispatcher.ForUnresolvedMethod
java.lang.Object
net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher.ForUnresolvedMethod
- All Implemented Interfaces:
JavaDispatcher.Dispatcher
- Enclosing interface:
- JavaDispatcher.Dispatcher
@Enhance
public static class JavaDispatcher.Dispatcher.ForUnresolvedMethod
extends Object
implements JavaDispatcher.Dispatcher
A dispatcher for an unresolved method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher
JavaDispatcher.Dispatcher.ForConstructor, JavaDispatcher.Dispatcher.ForContainerCreation, JavaDispatcher.Dispatcher.ForDefaultValue, JavaDispatcher.Dispatcher.ForInstanceCheck, JavaDispatcher.Dispatcher.ForNonStaticMethod, JavaDispatcher.Dispatcher.ForStaticMethod, JavaDispatcher.Dispatcher.ForUnresolvedMethod
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForUnresolvedMethod
(String message) Creates a dispatcher for an unresolved method. -
Method Summary
-
Field Details
-
message
The message for describing the reason why the method could not be resolved.
-
-
Constructor Details
-
ForUnresolvedMethod
Creates a dispatcher for an unresolved method.- Parameters:
message
- The message for describing the reason why the method could not be resolved.
-
-
Method Details
-
invoke
Invokes the proxied action.- Specified by:
invoke
in interfaceJavaDispatcher.Dispatcher
- Parameters:
argument
- The arguments provided.- Returns:
- The return value.
- Throws:
Throwable
- If any error occurs.
-
apply
Implements this dispatcher in a generated proxy.- Specified by:
apply
in interfaceJavaDispatcher.Dispatcher
- Parameters:
methodVisitor
- The method visitor to implement the method with.method
- The method being implemented.- Returns:
- The maximal size of the operand stack.
-