Systems and Methods for Modifying Code Generation Templates
First Claim
1. A computer-implemented method of generating computer program code comprising:
- receiving one or more templates for generating code;
receiving at least one model for generating code;
processing the one or more templates and the model in a code generator executable on a computer system to generate a plurality of code files containing program code based on the model and the one or more templates;
automatically identifying a common program code construct in two or more of the generated code files; and
automatically modifying each template used to generate the common program code construct to include a reference to a code framework, said code framework including said common program code construct.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention include systems and methods for template reverse engineering. In one embodiment, the present invention includes a computer-implemented method for code generation comprising receiving a template for generating code, receiving a model for generating code, processing the template and the model in a code generator, and in accordance therewith, generating code based on the model and the template, and automatically identifying a common program code construct in two or more of the generated code files. The common code may be automatically extracted from the generated code and embedded in a framework, and the templates may be modified to reference the framework.
-
Citations
20 Claims
-
1. A computer-implemented method of generating computer program code comprising:
-
receiving one or more templates for generating code; receiving at least one model for generating code; processing the one or more templates and the model in a code generator executable on a computer system to generate a plurality of code files containing program code based on the model and the one or more templates; automatically identifying a common program code construct in two or more of the generated code files; and automatically modifying each template used to generate the common program code construct to include a reference to a code framework, said code framework including said common program code construct. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-implemented system comprising:
-
a code generator, executable on a computer, for receiving at least one software model and one or more templates for generating code, wherein the software model specifies the software operations and comprises a plurality of elements to be translated into code constructs, and wherein the template specifies code constructs to be used from the plurality of elements in said software model, the code generator processing the one or more templates and the software model, and in accordance therewith, generating a plurality of code files containing program code based on the software model and the one or more templates; a framework generator, executable on said computer, for automatically identifying a common program code construct in two or more of the generated code files and moving said common program code construct in a code framework; and a code-to-template change processor, executable on said computer, for automatically modifying each template used to generate the common program code construct to include a reference to a code framework. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A computer-readable medium containing instructions for controlling a computer system to perform a method, the method comprising:
-
receiving one or more templates for generating code; receiving at least one model for generating code; processing the one or more templates and the model in a code generator executable on a computer system to generate a plurality of code files containing program code based on the model and the one or more templates; automatically identifying a common program code construct in two or more of the generated code files; and automatically modifying each template used to generate the common program code construct to include a reference to a code framework, said code framework including said common program code construct. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification