Package net.bytebuddy.implementation
Interface FieldAccessor.FieldLocation
- All Known Implementing Classes:
FieldAccessor.FieldLocation.Absolute
,FieldAccessor.FieldLocation.Relative
- Enclosing class:
- FieldAccessor
protected static interface FieldAccessor.FieldLocation
A field location represents an identified field description which depends on the instrumented type and method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An absolute field description representing a previously resolved field.static interface
A prepared field location.static class
A relative field location where a field is located dynamically. -
Method Summary
Modifier and TypeMethodDescriptionprepare
(TypeDescription instrumentedType) A prepared field location.with
(FieldLocator.Factory fieldLocatorFactory) Specifies a field locator factory to use.
-
Method Details
-
with
Specifies a field locator factory to use.- Parameters:
fieldLocatorFactory
- The field locator factory to use.- Returns:
- An appropriate field location.
-
prepare
A prepared field location.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A prepared field location.
-