Generating sequence diagrams using call trees
First Claim
1. A method of analyzing static source code of a computer program, comprising:
- selecting the source code files to be analyzed;
selecting a class name and method in the class in said source code files to be analyzed;
generating a call tree as an ordered recursive sequence of all method calls in different classes or their instances that are invoked by said selected method in said selected class;
generating a sequence diagram from said call tree; and
storing said sequence diagram.
2 Assignments
0 Petitions
Accused Products
Abstract
A software tool is provided to analyze static source code. Source Code files are selected to define the project work space. A class and a method in the class are selected from said selected source code files. The tool generates a Call Tree as an ordered recursive sequence of all method calls in different classes or their instances that are invoked by said selected method in said selected class. A Sequence Diagram is generated from said Call Tree. The tool remembers all updates to the Call Tree used to generate the Sequence Diagram. This information is used when a generated Sequence Diagram is impacted due to changes made to any source code file included in the project.
62 Citations
30 Claims
-
1. A method of analyzing static source code of a computer program, comprising:
-
selecting the source code files to be analyzed;
selecting a class name and method in the class in said source code files to be analyzed;
generating a call tree as an ordered recursive sequence of all method calls in different classes or their instances that are invoked by said selected method in said selected class;
generating a sequence diagram from said call tree; and
storing said sequence diagram. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of analyzing static source code of a computer program, comprising:
-
selecting the source code files to be analyzed;
parsing said source code files to determine method declarations, constructor declarations, variable declarations, method invocations and constructor invocations;
resolving all method and constructor declarations to determine return type of methods and their signatures;
resolving all method invocations having compound statements to determine the data type of both the variables on which said method invocations are invoked and the implicit methods invoked on said methods;
determining the classes corresponding to said variables and said implicit methods; and
resolving the order in which said methods are invoked. - View Dependent Claims (7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A system for analyzing static source code of a computer program, comprising;
-
means for storing source code files to be analyzed;
means for storing a selected class name and method in said class from said source code files to be analyzed;
means for generating a call tree as an ordered recursive sequence of all method calls in different classes or instances thereof that are invoked by said selected method in said selected class;
means for generating a sequence diagram from said call tree; and
means for storing said sequence diagram. - View Dependent Claims (17, 18, 19, 20, 21)
-
-
22. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for analyzing static source code of a computer program, said method steps comprising:
-
selecting the computer program source code files to be analyzed;
selecting a class name and method in the class in said selected source code files to be analyzed;
generating a call tree as an ordered recursive sequence of all method calls in different classes or their instances that are invoked by said selected method in said selected class;
generating a sequence diagram from said call tree; and
storing said sequence diagram. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30)
-
Specification