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 java.lang.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
Fields Modifier and Type Field Description private FieldLocator.Factory
fieldLocatorFactory
The field locator factory to use.private java.lang.String
name
The name of the field.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForImplicitField(java.lang.String name, FieldLocator.Factory fieldLocatorFactory)
Creates an implicit field location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescription
resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.
-
-
-
Field Detail
-
name
private final java.lang.String name
The name of the field.
-
fieldLocatorFactory
private final FieldLocator.Factory fieldLocatorFactory
The field locator factory to use.
-
-
Constructor Detail
-
ForImplicitField
protected ForImplicitField(java.lang.String name, FieldLocator.Factory fieldLocatorFactory)
Creates an implicit field location.- Parameters:
name
- The name of the field.fieldLocatorFactory
- The field locator factory to use.
-
-
Method Detail
-
resolve
public FieldDescription resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.- Specified by:
resolve
in interfaceMethodCall.TargetHandler.ForField.Location
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The field to invoke the method upon.
-
-