Claims
- 1. A method for automatically generating program code, comprising:
creating a class file container object; adding a method to the class file object; adding code to the method; generating Java byte code for the class file container object; and generate an instance of the new class file object.
- 2. The method of claim 1 wherein creating a class file container object includes:
setting attributes for a class file.
- 3. The method of claim 2 the attributes include at least one of class file name, parent super.
- 4. The method of claim 1 wherein adding a method to the class file object includes:
adding a plurality of methods to the class file object.
- 5. The method of claim 1 wherein adding code to the method includes
adding code to the method using constructs that correspond to programming language statements, expressions, and variables.
- 6. The method of claim 5 wherein the constructs include parameters.
- 7. The method of claim 5 wherein each statement, expression type, variable is represented as an object.
- 8. The method of claim 1 wherein generating Java byte code for the class file container object includes:
generating an intermediate representation of program flow.
- 9. The method of claim 8 wherein generating Java byte code for the class file container object includes:
converting the intermediate representation into byte code.
- 10. The method of claim 1 wherein the program code implements an adaptor class.
- 11. The method of claim 1 wherein the program code implements a proxy class.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] The present application is related to the following United States patents and patent applications, which patents/applications are assigned to the owner of the present invention, and which patents/applications are incorporated by reference herein in their entirety:
[0002] United States patent application No. ______, entitled “Dynamically Generated Wrapper”, filed on XXX XX, 2003, Attorney Docket No. BEA1339us2, currently pending; and
[0003] United States patent application No. ______, entitled “Dynamic Code Generation System”, filed on XXX XX, 2003, Attorney Docket No. BEA1316us2, currently pending.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60450987 |
Feb 2003 |
US |