Package net.bytebuddy.implementation
Class FieldAccessor.FieldLocation.Absolute
java.lang.Object
net.bytebuddy.implementation.FieldAccessor.FieldLocation.Absolute
- All Implemented Interfaces:
FieldAccessor.FieldLocation
,FieldAccessor.FieldLocation.Prepared
- Enclosing interface:
FieldAccessor.FieldLocation
@Enhance
public static class FieldAccessor.FieldLocation.Absolute
extends Object
implements FieldAccessor.FieldLocation, FieldAccessor.FieldLocation.Prepared
An absolute field description representing a previously resolved field.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.FieldAccessor.FieldLocation
FieldAccessor.FieldLocation.Absolute, FieldAccessor.FieldLocation.Prepared, FieldAccessor.FieldLocation.Relative
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Absolute
(FieldDescription fieldDescription) Creates an absolute field location. -
Method Summary
Modifier and TypeMethodDescriptionprepare
(TypeDescription instrumentedType) A prepared field location.resolve
(MethodDescription instrumentedMethod) Resolves the field description to use.with
(FieldLocator.Factory fieldLocatorFactory) Specifies a field locator factory to use.
-
Field Details
-
fieldDescription
The field description.
-
-
Constructor Details
-
Absolute
Creates an absolute field location.- Parameters:
fieldDescription
- The field description.
-
-
Method Details
-
with
Specifies a field locator factory to use.- Specified by:
with
in interfaceFieldAccessor.FieldLocation
- Parameters:
fieldLocatorFactory
- The field locator factory to use.- Returns:
- An appropriate field location.
-
prepare
A prepared field location.- Specified by:
prepare
in interfaceFieldAccessor.FieldLocation
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A prepared field location.
-
resolve
Resolves the field description to use.- Specified by:
resolve
in interfaceFieldAccessor.FieldLocation.Prepared
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The resolved field description.
-