class FieldWriterInt32Val<T>
        extends FieldWriterInt32<T> {
    FieldWriterInt32Val(
            String name,
            int ordinal,
            long features,
            String format,
            String label,
            Field field
    ) {
        super(name, ordinal, features, format, label, int.class, int.class, field, null);
    }

    @Override
    public Object getFieldValue(T object) {
        return getFieldValueInt(object);
    }

    public int getFieldValueInt(T object) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean write(JSONWriter jsonWriter, T object) {
        int value = getFieldValueInt(object);

        if (value == 0 && jsonWriter.isEnabled(JSONWriter.Feature.NotWriteDefaultValue)) {
            return false;
        }

        writeInt32(jsonWriter, value);
        return true;
    }

    @Override
    public void writeValue(JSONWriter jsonWriter, T object) {
        int value = getFieldValueInt(object);
        jsonWriter.writeInt32(value);
    }
}

        if (object == null) {
            throw new JSONException("field.get error, " + fieldName);
        }

        try {
            int value;
            if (fieldOffset != -1) {
                value = UNSAFE.getInt(object, fieldOffset);
            } else {
                value = field.getInt(object);
            }
            return value;
        } catch (IllegalArgumentException | IllegalAccessException e) {
            throw new JSONException("field.get error, " + fieldName, e);
        }
    
<methods>public ObjectWriter#RAW getObjectWriter(com.alibaba.fastjson2.JSONWriter, Class#RAW) ,public boolean write(com.alibaba.fastjson2.JSONWriter, T) ,public final void writeInt32(com.alibaba.fastjson2.JSONWriter, int) ,public void writeValue(com.alibaba.fastjson2.JSONWriter, T) <variables>final non-sealed boolean toString