Package net.bytebuddy.implementation
Class FieldAccessor.FieldLocation.Relative.Prepared
java.lang.Object
net.bytebuddy.implementation.FieldAccessor.FieldLocation.Relative.Prepared
- All Implemented Interfaces:
FieldAccessor.FieldLocation.Prepared
- Enclosing class:
- FieldAccessor.FieldLocation.Relative
@Enhance
protected static class FieldAccessor.FieldLocation.Relative.Prepared
extends Object
implements FieldAccessor.FieldLocation.Prepared
A prepared version of a field location.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldLocator
The field locator factory to use.private final FieldAccessor.FieldNameExtractor
The field name extractor to use. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Prepared
(FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator fieldLocator) Creates a new relative field location. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription instrumentedMethod) Resolves the field description to use.
-
Field Details
-
fieldNameExtractor
The field name extractor to use. -
fieldLocator
The field locator factory to use.
-
-
Constructor Details
-
Prepared
Creates a new relative field location.- Parameters:
fieldNameExtractor
- The field name extractor to use.fieldLocator
- The field locator to use.
-
-
Method Details
-
resolve
Resolves the field description to use.- Specified by:
resolve
in interfaceFieldAccessor.FieldLocation.Prepared
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The resolved field description.
-