Package net.bytebuddy.implementation
Class MethodCall.ArgumentLoader.ForField.ArgumentProvider
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForField.ArgumentProvider
-
- All Implemented Interfaces:
MethodCall.ArgumentLoader.ArgumentProvider
- Enclosing class:
- MethodCall.ArgumentLoader.ForField
@Enhance protected static class MethodCall.ArgumentLoader.ForField.ArgumentProvider extends java.lang.Object implements MethodCall.ArgumentLoader.ArgumentProvider
An argument provider for a field access.
-
-
Field Summary
Fields Modifier and Type Field Description private FieldDescription
fieldDescription
The field being accessed.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArgumentProvider(FieldDescription fieldDescription)
Creates a new argument provider for a field access.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MethodCall.ArgumentLoader>
resolve(MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Resolves this provider to an argument loader for each provided argument.
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The field being accessed.
-
-
Constructor Detail
-
ArgumentProvider
protected ArgumentProvider(FieldDescription fieldDescription)
Creates a new argument provider for a field access.- Parameters:
fieldDescription
- The field being accessed.
-
-
Method Detail
-
resolve
public java.util.List<MethodCall.ArgumentLoader> resolve(MethodDescription instrumentedMethod, MethodDescription invokedMethod)
Resolves this provider to an argument loader for each provided argument.- Specified by:
resolve
in interfaceMethodCall.ArgumentLoader.ArgumentProvider
- Parameters:
instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.- Returns:
- A list of provided argument loaders.
-
-