Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter
-
- All Implemented Interfaces:
MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodParameterArrayElement
protected static class MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
Creates an argument loader for an array element that of a specific parameter.
-
-
Constructor Summary
Constructors Constructor Description OfParameter(int index, int arrayIndex)
Creates a factory for an argument loader that loads a given parameter's array value.
-
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.
-
-