Patent ID: 7536675

Claim:
A computer program product including a storage medium with instructions thereon for execution by a computer for high level dynamic code generation, the instructions comprising: a) computer code for dynamically generating at run-time a class file container object that stores source code describing a class file, wherein generating the class container object includes selecting a class name and a super class for the class, wherein dynamically generated code exists for the life of a server it resides upon; b) computer code for adding a first source code defining a method to the class stored in the class file container object, wherein an application programming interface is used to define the method; c) computer code for repeating step b for each method of the class; d) computer code for adding a second source code into the method in the class stored in the class file container object, wherein an application programming interface is used to define code added into the method; e) computer code for repeating step d to populate each method of the class stored in the class file container object; f) computer code for generating a tree of statements and expressions based on the class stored in tile class file container object, wherein each statement and expression is represented as an object, wherein each statement maintains state of the program being generated, wherein the tree of statements and expressions forms a known structure when the class is at least one of an adapter and a proxy type, wherein organization of objects in a particular structure or interface avoids a need for a compiler; g) computer code for using the tree of statements and expressions to generate byte code for the class; and h) computer code for instantiating an instance of a new class file object from the byte code.