Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfInvokedMethod
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfInvokedMethod
-
- All Implemented Interfaces:
MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodParameterArrayElement
public static class MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfInvokedMethod extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
An argument loader factory that loads an array element from a parameter for each argument of the invoked method.
-
-
Constructor Summary
Constructors Constructor Description OfInvokedMethod(int index)
Creates an argument loader factory for an invoked method.
-
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.
-
-