Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForField.Location.ForImplicitField
java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForField.Location.ForImplicitField
- All Implemented Interfaces:
MethodCall.TargetHandler.ForField.Location
- Enclosing interface:
MethodCall.TargetHandler.ForField.Location
@Enhance
public static class MethodCall.TargetHandler.ForField.Location.ForImplicitField
extends Object
implements MethodCall.TargetHandler.ForField.Location
An implicit field location.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodCall.TargetHandler.ForField.Location
MethodCall.TargetHandler.ForField.Location.ForExplicitField, MethodCall.TargetHandler.ForField.Location.ForImplicitField -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldLocator.FactoryThe field locator factory to use.private final StringThe name of the field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForImplicitField(String name, FieldLocator.Factory fieldLocatorFactory) Creates an implicit field location. -
Method Summary
Modifier and TypeMethodDescriptionresolve(TypeDescription instrumentedType) Resolves the field to invoke the method upon.
-
Field Details
-
name
The name of the field. -
fieldLocatorFactory
The field locator factory to use.
-
-
Constructor Details
-
ForImplicitField
Creates an implicit field location.- Parameters:
name- The name of the field.fieldLocatorFactory- The field locator factory to use.
-
-
Method Details
-
resolve
Resolves the field to invoke the method upon.- Specified by:
resolvein interfaceMethodCall.TargetHandler.ForField.Location- Parameters:
instrumentedType- The instrumented type.- Returns:
- The field to invoke the method upon.
-