@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.TargetHandler.ForField.Location.ForImplicitField extends java.lang.Object implements MethodCall.TargetHandler.ForField.Location
MethodCall.TargetHandler.ForField.Location.ForExplicitField, MethodCall.TargetHandler.ForField.Location.ForImplicitField
Modifier and Type | Field and Description |
---|---|
private FieldLocator.Factory |
fieldLocatorFactory
The field locator factory to use.
|
private java.lang.String |
name
The name of the field.
|
Modifier | Constructor and Description |
---|---|
protected |
ForImplicitField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Creates an implicit field location.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription |
resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.
|
private final java.lang.String name
private final FieldLocator.Factory fieldLocatorFactory
protected ForImplicitField(java.lang.String name, FieldLocator.Factory fieldLocatorFactory)
name
- The name of the field.fieldLocatorFactory
- The field locator factory to use.public FieldDescription resolve(TypeDescription instrumentedType)
resolve
in interface MethodCall.TargetHandler.ForField.Location
instrumentedType
- The instrumented type.