class FieldWriterInt8Method
        extends FieldWriterInt8 {
    FieldWriterInt8Method(
            String fieldName,
            int ordinal,
            long features,
            String format,
            String label,
            Field field,
            Method method,
            Class fieldClass
    ) {
        super(fieldName, ordinal, features, format, label, fieldClass, field, method);
    }

    @Override
    public Object getFieldValue(Object object) {<FILL_FUNCTION_BODY>}
}

        try {
            return method.invoke(object);
        } catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException e) {
            throw new JSONException("invoke getter method error, " + fieldName, e);
        }
    
<methods>public boolean write(com.alibaba.fastjson2.JSONWriter, java.lang.Object) ,public void writeValue(com.alibaba.fastjson2.JSONWriter, java.lang.Object) <variables>