Class Pipe.Binder.RedirectionProxy.MethodCall
java.lang.Object
net.bytebuddy.implementation.bind.annotation.Pipe.Binder.RedirectionProxy.MethodCall
- All Implemented Interfaces:
InstrumentedType.Prepareable
,Implementation
- Enclosing class:
- Pipe.Binder.RedirectionProxy
@Enhance
protected static class Pipe.Binder.RedirectionProxy.MethodCall
extends Object
implements Implementation
The implementation to implement a
Pipe.Binder.RedirectionProxy
's forwarding method.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
The appender for implementing thePipe.Binder.RedirectionProxy.MethodCall
.Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Assigner
The assigner to be used for invoking the forwarded method.private final MethodDescription
The method that is invoked by the implemented method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MethodCall
(MethodDescription redirectedMethod, Assigner assigner) Creates a new method call implementation. -
Method Summary
Modifier and TypeMethodDescriptionappender
(Implementation.Target implementationTarget) Creates a byte code appender that determines the implementation of the instrumented type's methods.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
redirectedMethod
The method that is invoked by the implemented method. -
assigner
The assigner to be used for invoking the forwarded method.
-
-
Constructor Details
-
MethodCall
Creates a new method call implementation.- Parameters:
redirectedMethod
- The method that is invoked by the implemented method.assigner
- The assigner to be used for invoking the forwarded method.
-
-
Method Details
-
prepare
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
appender
Creates a byte code appender that determines the implementation of the instrumented type's methods.- Specified by:
appender
in interfaceImplementation
- Parameters:
implementationTarget
- The target of the current implementation.- Returns:
- A byte code appender for implementing methods delegated to this implementation. This byte code appender
is also responsible for handling methods that were added by this implementation on the call to
InstrumentedType.Prepareable.prepare(InstrumentedType)
.
-