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.FieldResolverA resolver for creating an instrumentation for a field access.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFieldProxy.Binder.FieldResolver.FactoryA factory for creating a field resolver.static classFieldProxy.Binder.FieldResolver.ForGetterA field resolver for a getter accessor.static classFieldProxy.Binder.FieldResolver.ForGetterSetterPairA field resolver for an accessor that both gets and sets a field value.static classFieldProxy.Binder.FieldResolver.ForSetterA field resolver for a setter accessor.static classFieldProxy.Binder.FieldResolver.UnresolvedAn 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.TypeDescriptiongetProxyType()Returns the type of the field access proxy.booleanisResolved()Returnstrueif the field access can be established.
-
-
-
Method Detail
-
isResolved
boolean isResolved()
Returnstrueif the field access can be established.- Returns:
trueif 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.
-
-