Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForMethodParameter.Factory
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodParameter.Factory
-
- All Implemented Interfaces:
MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodParameter
protected static class MethodCall.ArgumentLoader.ForMethodParameter.Factory extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
A factory for an argument loader that supplies a method parameter as an argument.
-
-
Constructor Summary
Constructors Constructor Description Factory(int index)
Creates a factory for an argument loader that supplies a method parameter as an argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MethodCall.ArgumentLoader>
make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow the loading of the represented argument.
-
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Description copied from interface:MethodCall.ArgumentLoader.Factory
Prepares the instrumented type in order to allow the loading of the represented argument.- Specified by:
prepare
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The prepared instrumented type.
-
make
public java.util.List<MethodCall.ArgumentLoader> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Description copied from interface:MethodCall.ArgumentLoader.Factory
Creates any number of argument loaders for an instrumentation.- Specified by:
make
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.- Returns:
- Any number of argument loaders to supply for the method call.
-
-