Interface FieldProxy.Binder.FieldResolver
- All Known Implementing Classes:
FieldProxy.Binder.FieldResolver.ForGetter
,FieldProxy.Binder.FieldResolver.ForGetterSetterPair
,FieldProxy.Binder.FieldResolver.ForSetter
,FieldProxy.Binder.FieldResolver.Unresolved
- Enclosing class:
FieldProxy.Binder
protected static interface FieldProxy.Binder.FieldResolver
A resolver for creating an instrumentation for a field access.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A factory for creating a field resolver.static class
A field resolver for a getter accessor.static class
A field resolver for an accessor that both gets and sets a field value.static class
A field resolver for a setter accessor.static enum
An unresolved field resolver. -
Method Summary
Modifier and TypeMethodDescriptionapply
(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.Returns the type of the field access proxy.boolean
Returnstrue
if the field access can be established.
-
Method Details
-
isResolved
boolean isResolved()Returnstrue
if the field access can be established.- Returns:
true
if the field access can be established.
-
getProxyType
TypeDescription getProxyType()Returns the type of the field access proxy.- Returns:
- The type of the field access proxy.
-
apply
DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Applies this field resolver to a dynamic type.- Parameters:
builder
- The dynamic type builder to use.fieldDescription
- The accessed field.assigner
- The assigner to use.methodAccessorFactory
- The method accessor factory to use.- Returns:
- The builder for creating the field accessor proxy type.
-