Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForMethodCall.Factory
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TargetHandler.ForMethodCall.Factory
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,MethodCall.TargetHandler.Factory
- Enclosing class:
- MethodCall.TargetHandler.ForMethodCall
@Enhance protected static class MethodCall.TargetHandler.ForMethodCall.Factory extends java.lang.Object implements MethodCall.TargetHandler.Factory
Creates a factory for invoking a method on the return type of another method.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodCall
methodCall
The method call to invoke.
-
Constructor Summary
Constructors Constructor Description Factory(MethodCall methodCall)
Creates a new factory for invoking another method call as a method target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall.TargetHandler
make(Implementation.Target implementationTarget)
Creates a target handler for a given implementation target.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
-
-
-
Field Detail
-
methodCall
private final MethodCall methodCall
The method call to invoke.
-
-
Constructor Detail
-
Factory
public Factory(MethodCall methodCall)
Creates a new factory for invoking another method call as a method target.- Parameters:
methodCall
- The method call to invoke.
-
-
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.
-
make
public MethodCall.TargetHandler make(Implementation.Target implementationTarget)
Creates a target handler for a given implementation target.- Specified by:
make
in interfaceMethodCall.TargetHandler.Factory
- Parameters:
implementationTarget
- The implementation target to use.- Returns:
- The target handler to use.
-
-