public static MethodHandle ofSetter(FieldDescription.InDefinedShape fieldDescription) {
            return new MethodHandle(HandleType.ofSetter(fieldDescription),
                    fieldDescription.getDeclaringType().asErasure(),
                    fieldDescription.getInternalName(),
                    TypeDescription.VOID,
                    Collections.singletonList(fieldDescription.getType().asErasure()));
        }
public static MethodHandle ofSetter ( FieldDescription . InDefinedShape fieldDescription ) { return new MethodHandle ( HandleType . ofSetter ( fieldDescription ) , fieldDescription . getDeclaringType ( ) . asErasure ( ) , fieldDescription . getInternalName ( ) , TypeDescription . VOID , Collections . singletonList ( fieldDescription . getType ( ) . asErasure ( ) ) ) ; }
Returns a method handle for a getter of the given field.

@param fieldDescription The field to represent.
@return A method handle for a getter of the given field.