ASMSerializerFactory.java 文件源码

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

项目:boohee_v5.6 作者:
private void _filters(MethodVisitor mw, FieldInfo property, Context context, Label _end) {
    if (property.getField() != null && Modifier.isTransient(property.getField().getModifiers())) {
        mw.visitVarInsn(25, context.var("out"));
        mw.visitFieldInsn(178, "com/alibaba/fastjson/serializer/SerializerFeature", "SkipTransientField", "Lcom/alibaba/fastjson/serializer/SerializerFeature;");
        mw.visitMethodInsn(182, "com/alibaba/fastjson/serializer/SerializeWriter", "isEnabled", "(Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z");
        mw.visitJumpInsn(154, _end);
    }
    _notWriteDefault(mw, property, context, _end);
    _apply(mw, property, context);
    mw.visitJumpInsn(153, _end);
    _processKey(mw, property, context);
    Label _else_processKey = new Label();
    _processValue(mw, property, context);
    mw.visitVarInsn(25, context.original());
    mw.visitVarInsn(25, context.processValue());
    mw.visitJumpInsn(165, _else_processKey);
    _writeObject(mw, property, context, _end);
    mw.visitJumpInsn(167, _end);
    mw.visitLabel(_else_processKey);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号