@HashCodeAndEqualsPlugin.Enhance public static class FieldProxy.Binder.FieldResolver.ForGetter extends Object implements FieldProxy.Binder.FieldResolver
FieldProxy.Binder.FieldResolver.Factory, FieldProxy.Binder.FieldResolver.ForGetter, FieldProxy.Binder.FieldResolver.ForGetterSetterPair, FieldProxy.Binder.FieldResolver.ForSetter, FieldProxy.Binder.FieldResolver.Unresolved
Modifier | Constructor and Description |
---|---|
protected |
ForGetter(MethodDescription.InDefinedShape getterMethod)
Creates a new getter field resolver.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
TypeDescription |
getProxyType()
Returns the type of the field access proxy.
|
boolean |
isResolved()
Returns
true if the field access can be established. |
protected ForGetter(MethodDescription.InDefinedShape getterMethod)
getterMethod
- The getter method.public boolean isResolved()
true
if the field access can be established.isResolved
in interface FieldProxy.Binder.FieldResolver
true
if the field access can be established.public TypeDescription getProxyType()
getProxyType
in interface FieldProxy.Binder.FieldResolver
public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory)
apply
in interface FieldProxy.Binder.FieldResolver
builder
- The dynamic type builder to use.fieldDescription
- The accessed field.assigner
- The assigner to use.methodAccessorFactory
- The method accessor factory to use.Copyright © 2014–2025. All rights reserved.