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 java.lang.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 Modifier and Type Field Description private FieldDescriptionfieldDescriptionThe field to resolve.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForExplicitField(FieldDescription fieldDescription)Creates an explicit field location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescriptionresolve(TypeDescription instrumentedType)Resolves the field to invoke the method upon.
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The field to resolve.
-
-
Constructor Detail
-
ForExplicitField
protected ForExplicitField(FieldDescription fieldDescription)
Creates an explicit field location.- Parameters:
fieldDescription- The field to resolve.
-
-
Method Detail
-
resolve
public FieldDescription resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.- Specified by:
resolvein interfaceMethodCall.TargetHandler.ForField.Location- Parameters:
instrumentedType- The instrumented type.- Returns:
- The field to invoke the method upon.
-
-