Method and apparatus for determining class dependencies of objects and/or classes
First Claim
1. A method for determining a class dependency that identifies a supporting class on which a target class depends, wherein the target class is defined in an object-oriented programming language, comprising:
- receiving a representation of the target class;
creating a model of the target class from the representation;
analyzing the model to detect references to the supporting class;
if a supporting class is detected, determining a class dependency for the supporting class; and
creating a list of dependent classes for the target class and supporting classes.
2 Assignments
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system that determines class dependencies of a class. The system operates by: receiving a representation of the class; creating a model of the class from the representation; analyzing the model to detect references to supporting classes; and creating a list of all dependent classes. For each supporting class found, the system recursively determines the dependencies of that class and adds them to the list. In a variation on this embodiment, the system identifies classes that an object depends on by: receiving a representation of an object; parsing the object to identify any classes on which the object depends; and analyzing and documenting the class dependencies of the object and all dependent classes.
-
Citations
27 Claims
-
1. A method for determining a class dependency that identifies a supporting class on which a target class depends, wherein the target class is defined in an object-oriented programming language, comprising:
-
receiving a representation of the target class;
creating a model of the target class from the representation;
analyzing the model to detect references to the supporting class;
if a supporting class is detected, determining a class dependency for the supporting class; and
creating a list of dependent classes for the target class and supporting classes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for determining a class dependency that identifies a supporting class on which a target class depends, wherein the target class is defined in an object-oriented programming language, the method comprising:
-
receiving a representation of the target class;
creating a model of the target class from the representation;
analyzing the model to detect references to the supporting class;
if a supporting class is detected, determining a class dependency for the supporting class; and
creating a list of dependent classes for the target class and supporting classes. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. An apparatus that determines a class dependency that identifies a supporting class on which a target class depends, wherein the target class is defined in an object-oriented programming language, comprising:
-
a receiving mechanism that is configured to receive a representation of the target class;
a modeling mechanism that is configured to create a model of the target class from the representation;
an analysis mechanism that is configured to analyze the model to detect references to the supporting class;
a supporting mechanism that is configured to determine a class dependency for the supporting class; and
a listing mechanism that is configured to create a list of dependent classes for the target class and supporting classes. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
-
Specification