Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForMethodParameterArrayElement
@Enhance 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.
-
-
Field Summary
Fields Modifier and Type Field Description private int
arrayIndex
The array index to load.private int
index
The parameter index.
-
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(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.
-
-
-
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.
-
-