@HashCodeAndEqualsPlugin.Enhance protected static class MethodCall.ArgumentLoader.ForField.ArgumentProvider extends java.lang.Object implements MethodCall.ArgumentLoader.ArgumentProvider
Modifier and Type | Field and Description |
---|---|
private FieldDescription |
fieldDescription
The field being accessed.
|
Modifier | Constructor and Description |
---|---|
protected |
ArgumentProvider(FieldDescription fieldDescription)
Creates a new argument provider for a field access.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MethodCall.ArgumentLoader> |
resolve(MethodDescription instrumentedMethod,
MethodDescription invokedMethod)
Resolves this provider to an argument loader for each provided argument.
|
private final FieldDescription fieldDescription
protected ArgumentProvider(FieldDescription fieldDescription)
fieldDescription
- The field being accessed.public java.util.List<MethodCall.ArgumentLoader> resolve(MethodDescription instrumentedMethod, MethodDescription invokedMethod)
resolve
in interface MethodCall.ArgumentLoader.ArgumentProvider
instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.