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 Classes Modifier and Type Interface Description static interface
FieldProxy.Binder.FieldResolver.Factory
A factory for creating a field resolver.static class
FieldProxy.Binder.FieldResolver.ForGetter
A field resolver for a getter accessor.static class
FieldProxy.Binder.FieldResolver.ForGetterSetterPair
A field resolver for an accessor that both gets and sets a field value.static class
FieldProxy.Binder.FieldResolver.ForSetter
A field resolver for a setter accessor.static class
FieldProxy.Binder.FieldResolver.Unresolved
An unresolved field resolver.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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()
Returnstrue
if the field access can be established.
-
-
-
Method Detail
-
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.
-
-