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