Class Pipe.Binder.Redirection.MethodCall
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.Pipe.Binder.Redirection.MethodCall
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,Implementation
- Enclosing class:
- Pipe.Binder.Redirection
@Enhance protected static class Pipe.Binder.Redirection.MethodCall extends java.lang.Object implements Implementation
The implementation to implement aPipe.Binder.Redirection
's forwarding method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
Pipe.Binder.Redirection.MethodCall.Appender
The appender for implementing thePipe.Binder.Redirection.MethodCall
.-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
-
-
Field Summary
Fields Modifier and Type Field Description private Assigner
assigner
The assigner to be used for invoking the forwarded method.private MethodDescription
redirectedMethod
The method that is invoked by the implemented method.
-
Constructor Summary
Constructors Modifier Constructor Description private
MethodCall(MethodDescription redirectedMethod, Assigner assigner)
Creates a new method call implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteCodeAppender
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
-
-
-
Field Detail
-
redirectedMethod
private final MethodDescription redirectedMethod
The method that is invoked by the implemented method.
-
assigner
private final Assigner assigner
The assigner to be used for invoking the forwarded method.
-
-
Constructor Detail
-
MethodCall
private MethodCall(MethodDescription redirectedMethod, Assigner assigner)
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 Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
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
public ByteCodeAppender appender(Implementation.Target implementationTarget)
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)
.
-
-