Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
HOOK METHOD AND APPARATUS AT COMPILE TIME, DEVICE, AND STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2022/166669
Kind Code:
A1
Abstract:
A hook method and apparatus at compile time, a device, and a storage medium. The method comprises: first, receiving a hook code file and a target program source code (S101), the hook code file comprising the correspondence between preset positioning information and a preset object processing method; then, after the target program source code is converted into an abstract syntax tree, determining, from the abstract syntax tree, a node corresponding to the preset positioning information in the hook code file (S102); using the preset object processing method corresponding to the preset positioning information in the hook code file to modify the node corresponding to the preset positioning information in the abstract syntax tree to obtain an updated abstract syntax tree (S103); and finally, generating a target program on the basis of the updated abstract syntax tree (S104).

Inventors:
LIU FENGKAI (CN)
Application Number:
PCT/CN2022/073580
Publication Date:
August 11, 2022
Filing Date:
January 24, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BEIJING BYTEDANCE NETWORK TECH CO LTD (CN)
International Classes:
G06F8/41
Foreign References:
CN112799677A2021-05-14
CN111090433A2020-05-01
CN111352849A2020-06-30
CN106990955A2017-07-28
US20190227904A12019-07-25
US20130159976A12013-06-20
Attorney, Agent or Firm:
ZHIFAN & PARTNERS (CN)
Download PDF: