Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume IX

"Code Generation Somusar Style"

Printer friendly


Contents
1. Introduction
2. Reproducing a POC on Your Computer
3. J2EE Generator
4. .NET Generator
5. PHP Generator
6. Java (J2SE) Generator
6.1 Proof-of-concept (POC) Information
6.2 Description
6.3 Java Generator
7. Bare Bones Multitier Generator
8. XML Processor
9. XML Generator
10. API Generator Producing C and HTML
11. VisualBasic.NET Generator Draft
12. VisualBasic.NET Generator
13. XML to Java Generator
14. PHP/HTML Generator
15. Java and JSP DAO Struts Generator
16. Further Reading

Chapter 6 - Java (J2SE) Generator

6.1 - Proof-of-concept (POC) Information        top

  • Download the free Community Edition to test this generator, or send us an email for any question on this POC.
    [POC codename of this generator: java]

  • Original source code model taken from an internal POC.

  • Level of complexity: medium.

  • Generated with the following SoProMach (what is SoProMach?):

  •     tefigel[tm]: version 104/community - 31Jan05

6.2 - Description        top

This POC provides examples of use of tjpp[tm] (Tefigel Java preprocessor) that produces Java files from corresponding input files with extension ".tj".

Purpose of the POC is to demonstrate how compact directives can produce repetitive fragments of code by exploiting the lightweight macro definition capabilities of Tefigel on micropatterns of Java code.

6.3 - Java Generator        top

Table 15 - Java Generator: Generated Files

File name Source code
FiveProperties.java View
Hello.java View
Hello2.java View
Results.java View
SampleException1.java View
SampleException2.java View
SimpleClass.java View
subpackage/ComplexClass.java View

Table 16 - Java Generator: Input Design Files

File name Source code
FiveProperties.tj View
Hello.tj View
Hello2.tj View
Results.tj View
SampleException1.tj View
SampleException2.tj View
SimpleClass.tj View
subpackage/ComplexClass.tj View

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / cg_somusar  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster