@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface FieldSetterHandle
 Assigns a java.lang.invoke.MethodHandle to the annotated parameter which represents a getter of the represented field.
 For a binding to be valid, the instrumented type must be able to access a field of the given name.
 
 Setting value() is optional. If the value is not set, the field value attempts to bind a setter's
 or getter's field if the intercepted method is an accessor method. Otherwise, the binding renders the target method
 to be an illegal candidate for binding.
 
 Important: Don't confuse this annotation with Advice.FieldSetterHandle or
 MemberSubstitution.FieldSetterHandle. This annotation should be used with
 MethodDelegation only.
 
| Modifier and Type | Optional Element and Description | 
|---|---|
| Class<?> | declaringTypeDefines the type on which the field is declared. | 
| String | valueThe name of the field to be accessed. | 
public abstract String value
public abstract Class<?> declaringType
Copyright © 2014–2024. All rights reserved.