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 List
<? extends FieldAccessor.FieldNameExtractor> The field name extractor to use in their application order. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Prepared
(List<? extends FieldAccessor.FieldNameExtractor> fieldNameExtractors, FieldLocator fieldLocator) Creates a new relative field location. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription instrumentedMethod) Resolves the field description to use.
-
Field Details
-
fieldNameExtractors
The field name extractor to use in their application order. -
fieldLocator
The field locator factory to use.
-
-
Constructor Details
-
Prepared
protected Prepared(List<? extends FieldAccessor.FieldNameExtractor> fieldNameExtractors, FieldLocator fieldLocator) Creates a new relative field location.- Parameters:
fieldNameExtractors
- The field name extractors to use in their application order.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.
-