Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForField.Location.ForExplicitField
java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForField.Location.ForExplicitField
- All Implemented Interfaces:
MethodCall.TargetHandler.ForField.Location
- Enclosing interface:
- MethodCall.TargetHandler.ForField.Location
@Enhance
public static class MethodCall.TargetHandler.ForField.Location.ForExplicitField
extends Object
implements MethodCall.TargetHandler.ForField.Location
An explicit field location.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodCall.TargetHandler.ForField.Location
MethodCall.TargetHandler.ForField.Location.ForExplicitField, MethodCall.TargetHandler.ForField.Location.ForImplicitField
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForExplicitField
(FieldDescription fieldDescription) Creates an explicit field location. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType) Resolves the field to invoke the method upon.
-
Field Details
-
fieldDescription
The field to resolve.
-
-
Constructor Details
-
ForExplicitField
Creates an explicit field location.- Parameters:
fieldDescription
- The field to resolve.
-
-
Method Details
-
resolve
Resolves the field to invoke the method upon.- Specified by:
resolve
in interfaceMethodCall.TargetHandler.ForField.Location
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The field to invoke the method upon.
-