A control flow graph construction method for object-oriented programming
A control flow graph, object-oriented technology, applied in software design and other directions, can solve problems such as difficult migration, and achieve the effect of simple implementation and wide application
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0074] For the convenience of description, suppose there is the following simplified source code example:
[0075] Table 1 example code
[0076]
[0077]
[0078] According to the calculation steps mentioned above, implement in turn:
[0079] Step 1: Analyze the corresponding abstract syntax tree according to the above code:
[0080] The source code in Table 1 contains three classes and an interface. ConStrategyA and ConStrategyB implement the Strategy interface, and the calPrice method in the Context class calls the discount method of the Strategy interface.
[0081] Step two build a class inheritance diagram based on the abstract syntax tree, such as image 3 Shown:
[0082] The abstract syntax tree of the source program contains three type declaration nodes, corresponding to image 3 The node name in. Parse the method declaration information contained in the type declaration to get image 3 The method information contained in the middle node. Further analyze the interface type infor...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com