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 java.util.List<MethodCall.ArgumentLoader>
make(Implementation.Target implementationTarget, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.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 java.util.List<MethodCall.ArgumentLoader> make(Implementation.Target implementationTarget, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.- Specified by:
make
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
implementationTarget
- The implementation target.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.- Returns:
- Any number of argument loaders to supply for the method call.
-
-