System and method for a java preprocessor
AssigneeSun Microsystems, Inc.
InventorsLeonid M. Arbouzov, Konstantin S. Bobrovsky
Life of this patent
Estimating the term…
Abstract
A Java preprocessor method is provided. A Java template file is received that includes Java programming language code and meta code. The Java template is then processed to create an intermediate program using the meta code, wherein the intermediate program is a Java program. The intermediate program is compiled to create an intermediate class, which is a Java based class, and an object text file is generated using the intermediate class.
Claims20
A method for preprocessing Java application code, comprising the operations of:
- receiving a Java template file, the Java template file including Java programming language code and meta code;
- processing the Java template to create an intermediate program using the meta code, wherein the intermediate program is a Java program;
- compiling the intermediate program to create an intermediate class, wherein the intermediate class is a Java based class;
- and
- generating an object text file using the intermediate class.
A method for transforming lines of a Java template for preprocessing, comprising the operations of:
- obtaining a line of text from a Java template;
- determining if the line of text begins with a meta symbol, wherein the meta symbol is a predefined symbol indicating the line of text is a preprocessor directive;
- removing the meta symbol from the line of text when the line of text begins with the meta symbol;
- and
- transforming the line of text into a function argument when the line of text does not begin with the meta symbol.
A Java preprocessor, comprising:
- a meta code converter capable of processing a Java template to create an intermediate program using meta code included in the Java template;
- and
- an object text generator that compiles the intermediate program to create an intermediate class, wherein the intermediate class is a Java based class, the object text generator also capable of generating an object text filed using the intermediate class.
Dependencies are inferred from the claim text.