ASMSerializerFactory.java 文件源码

java
阅读 51 收藏 0 点赞 0 评论 0

项目:boohee_v5.6 作者:
private void _decimal(Class<?> cls, MethodVisitor mw, FieldInfo property, Context context) {
    Label _end = new Label();
    _nameApply(mw, property, context, _end);
    _get(mw, context, property);
    mw.visitVarInsn(58, context.var("decimal"));
    _filters(mw, property, context, _end);
    Label _if = new Label();
    Label _else = new Label();
    Label _end_if = new Label();
    mw.visitLabel(_if);
    mw.visitVarInsn(25, context.var("decimal"));
    mw.visitJumpInsn(199, _else);
    _if_write_null(mw, property, context);
    mw.visitJumpInsn(167, _end_if);
    mw.visitLabel(_else);
    mw.visitVarInsn(25, context.var("out"));
    mw.visitVarInsn(21, context.var("seperator"));
    mw.visitVarInsn(25, context.fieldName());
    mw.visitVarInsn(25, context.var("decimal"));
    mw.visitMethodInsn(182, "com/alibaba/fastjson/serializer/SerializeWriter", "writeFieldValue", "(CLjava/lang/String;Ljava/math/BigDecimal;)V");
    _seperator(mw, context);
    mw.visitJumpInsn(167, _end_if);
    mw.visitLabel(_end_if);
    mw.visitLabel(_end);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号