Redundant variable and redundant method detection method and system based on abstract syntax tree
An abstract syntax tree and detection method technology, applied in the computer field, can solve problems such as low efficiency, reduced code readability, poor detection of redundant codes, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] The technical solution of the present invention will be further described below in conjunction with the accompanying drawings.
[0030] refer to figure 1 , the detection method of redundant variable and redundant method that the present invention proposes, utilizes Abstract Syntax Tree (Abstract Syntax Tree, AST) to parse java source file, obtain variable array and method array, analyze corresponding dependency, obtain redundant variables and methods, and finally delete redundant variables and redundant methods.
[0031] Specific steps are as follows:
[0032] Step 1, parse the java source file, and generate the abstract syntax tree of the java file.
[0033] The abstract syntax tree is a tree representation of the abstract syntax structure of the source code, and each node on the tree represents a structure in the source code. According to the grammatical characteristics of the Java language, the node structure of the abstract syntax tree of the Java language is des...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com