A sample of generated code has been provided. The sample can be downloaded as zip file from here.
Please, read the documentation ConverterGeneratorSampleExplained.pdf from the downloaded zip file. There the steps of creation from first generation step until the final visitor implementation is described in detail.
There are also three JAR files inside the zip containing Java code:
converter-generator-sample-source-2.1.5.jar contains the visitor generation source code using the visitor generator. In the documentation ConverterGeneratorSampleExplained.pdf it is explained how to use it.
converter-generator-sample-generated-2.1.5.jar contains the code generated by the visitor generator code. This code is generated automatically without any manual adaptions. This code contains only "structure" and does not make any meaningful thing. When you generate the visitor code as described in the documentation ConverterGeneratorSampleExplained.pdf then it is identical to the code in this JAR file.
converter-generator-sample-implemented-2.1.5.jar contains the code generated by the visitor generator and manually implemented. This code runs as defined in the use case described in documentation ConverterGeneratorSampleExplained.pdf.
The code in converter-generator-sample-implemented-2.1.5.jar and converter-generator-sample-source-2.1.5.jar must be compiled in the same classpath to run the samples successfully.
Copyright by Walter Lyrer
The author cannot be made responsible for any damage caused by the Converter Generator.
The usage of the Converter Generator is on own risk.
The code is designed and implemented on best know-how and with good intensions by the author.
Especially is to mention that the generated code of the Converter Generator is not guaranteed to run instantly correct.
Manual supervision is necessary.
Walter Lyrer
Jacoge Java Generator Eclipse Plugin
Strategy/State Generator
Visitor Generator
Named Parameter Converter