Object serialization and deserialization method, device, medium and program product based on annotation processing mechanism

CN122431677APending Publication Date: 2026-07-21ORIENTAL FORTUNE SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ORIENTAL FORTUNE SECURITIES CO LTD
Filing Date
2026-04-09
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing serialization schemes suffer from high maintenance costs, insufficient flexibility, and significant runtime serialization overhead.

Method used

By obtaining the abstract syntax tree during compilation, identifying and annotating target class nodes and their field nodes, generating serialization and deserialization method nodes, and injecting them into the class structure, runtime reflection mechanisms are avoided, development and maintenance costs are reduced, and execution efficiency and flexibility are improved.

Benefits of technology

It improves the execution efficiency of serialization and deserialization processing, reduces development and maintenance costs, and enhances the flexibility and scalability of serialization solutions in complex application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431677A_ABST
    Figure CN122431677A_ABST
Patent Text Reader

Abstract

The application provides an object serialization and deserialization method and device based on an annotation processing mechanism, a medium and a program product, comprising: in a compilation process, obtaining an abstract syntax tree of a target source program generated by a compiler; identifying a target class node marked with a preset serialization annotation in the abstract syntax tree, and identifying a target field node participating in serialization processing from the target class node to form a field structure set; performing code generation processing on the target class node corresponding to the field structure set based on the annotation processing mechanism, constructing serialization method nodes and deserialization method nodes for executing object serialization and deserialization processing; injecting the nodes of the serialization method and the deserialization method into the corresponding target class node, and updating the class structure corresponding to the target class node. The application introduces a code generation mode based on the annotation processing mechanism in the compilation process, thereby improving the execution efficiency, running stability and ease of use of the serialization and deserialization processing.
Need to check novelty before this filing date? Find Prior Art