@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.ArgumentLoader.ForMethodParameterArrayElement extends Object implements MethodCall.ArgumentLoader
Modifier and Type | Class and Description |
---|---|
static class |
MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfInvokedMethod
An argument loader factory that loads an array element from a parameter for each argument of the invoked method.
|
static class |
MethodCall.ArgumentLoader.ForMethodParameterArrayElement.OfParameter
Creates an argument loader for an array element that of a specific parameter.
|
MethodCall.ArgumentLoader.ArgumentProvider, MethodCall.ArgumentLoader.Factory, MethodCall.ArgumentLoader.ForField, MethodCall.ArgumentLoader.ForInstance, MethodCall.ArgumentLoader.ForInstrumentedType, MethodCall.ArgumentLoader.ForMethodCall, MethodCall.ArgumentLoader.ForMethodParameter, MethodCall.ArgumentLoader.ForMethodParameterArray, MethodCall.ArgumentLoader.ForMethodParameterArrayElement, MethodCall.ArgumentLoader.ForNullConstant, MethodCall.ArgumentLoader.ForStackManipulation, MethodCall.ArgumentLoader.ForThisReference
Constructor and Description |
---|
ForMethodParameterArrayElement(ParameterDescription parameterDescription,
int index)
Creates an argument loader for a parameter of the instrumented method where an array element is assigned to the invoked method.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
toStackManipulation(ParameterDescription target,
Assigner assigner,
Assigner.Typing typing)
Loads the argument that is represented by this instance onto the operand stack.
|
public ForMethodParameterArrayElement(ParameterDescription parameterDescription, int index)
parameterDescription
- The parameter from which to load an array element.index
- The array index to load.public StackManipulation toStackManipulation(ParameterDescription target, Assigner assigner, Assigner.Typing typing)
toStackManipulation
in interface MethodCall.ArgumentLoader
target
- The target parameter.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.Copyright © 2014–2024. All rights reserved.