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 java.lang.Object implements FieldAccessor.FieldLocation.Prepared
A prepared version of a field location.
-
-
Field Summary
Fields Modifier and Type Field Description private FieldLocator
fieldLocator
The field locator factory to use.private FieldAccessor.FieldNameExtractor
fieldNameExtractor
The field name extractor to use.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Prepared(FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator fieldLocator)
Creates a new relative field location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescription
resolve(MethodDescription instrumentedMethod)
Resolves the field description to use.
-
-
-
Field Detail
-
fieldNameExtractor
private final FieldAccessor.FieldNameExtractor fieldNameExtractor
The field name extractor to use.
-
fieldLocator
private final FieldLocator fieldLocator
The field locator factory to use.
-
-
Constructor Detail
-
Prepared
protected Prepared(FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator fieldLocator)
Creates a new relative field location.- Parameters:
fieldNameExtractor
- The field name extractor to use.fieldLocator
- The field locator to use.
-
-
Method Detail
-
resolve
public FieldDescription resolve(MethodDescription instrumentedMethod)
Resolves the field description to use.- Specified by:
resolve
in interfaceFieldAccessor.FieldLocation.Prepared
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The resolved field description.
-
-