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 java.lang.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 Modifier and Type Field Description private FieldDescriptionfieldDescriptionThe field description.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbsolute(FieldDescription fieldDescription)Creates an absolute field location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldAccessor.FieldLocation.Preparedprepare(TypeDescription instrumentedType)A prepared field location.FieldDescriptionresolve(MethodDescription instrumentedMethod)Resolves the field description to use.FieldAccessor.FieldLocationwith(FieldLocator.Factory fieldLocatorFactory)Specifies a field locator factory to use.
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The field description.
-
-
Constructor Detail
-
Absolute
protected Absolute(FieldDescription fieldDescription)
Creates an absolute field location.- Parameters:
fieldDescription- The field description.
-
-
Method Detail
-
with
public FieldAccessor.FieldLocation with(FieldLocator.Factory fieldLocatorFactory)
Specifies a field locator factory to use.- Specified by:
within interfaceFieldAccessor.FieldLocation- Parameters:
fieldLocatorFactory- The field locator factory to use.- Returns:
- An appropriate field location.
-
prepare
public FieldAccessor.FieldLocation.Prepared prepare(TypeDescription instrumentedType)
A prepared field location.- Specified by:
preparein interfaceFieldAccessor.FieldLocation- Parameters:
instrumentedType- The instrumented type.- Returns:
- A prepared field location.
-
resolve
public FieldDescription resolve(MethodDescription instrumentedMethod)
Resolves the field description to use.- Specified by:
resolvein interfaceFieldAccessor.FieldLocation.Prepared- Parameters:
instrumentedMethod- The instrumented method.- Returns:
- The resolved field description.
-
-