public void loadLocal(Class<?> cls, int var) {
        if (cls == byte.class || cls == short.class || cls == int.class || cls == char.class || cls == boolean.class) {
            visitVarInsn(Opcodes.ILOAD, var);
        } else if (cls == long.class) {
            visitVarInsn(Opcodes.LLOAD, var);
        } else if (cls == float.class) {
            visitVarInsn(Opcodes.FLOAD, var);
        } else if (cls == double.class) {
            visitVarInsn(Opcodes.DLOAD, var);
        } else {
            visitVarInsn(Opcodes.ALOAD, var);
        }
    }
Constructs a new {@link MethodWriter}.

@param symbolTable where the constants used in this AnnotationWriter must be stored.
@param access      the method's access flags (see {@link Opcodes}).
@param name        the method's name.
@param descriptor  the method's descriptor (see {@link Type}).
core/src/main/java/com/alibaba/fastjson2/internal/asm/MethodWriter.java