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 interfaceA factory for creating a field resolver.static classA field resolver for a getter accessor.static classA field resolver for an accessor that both gets and sets a field value.static classA field resolver for a setter accessor.static enumAn 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.booleanReturnstrueif the field access can be established.
-
Method Details
-
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.
-