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.
-
-
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.
-
-
-
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.
-
-