Menu

Sample

Walter Lyrer

Visitor Generator Sample

A sample of generated code has been provided. The sample can be downloaded as zip file from here.

Please, read the documentation VisitorGeneratorSampleExplained.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:

  • visitor-generator-sample-source-1.0.1.jar contains the visitor generation source code using the visitor generator. In the documentation VisitorGeneratorSampleExplained.pdf it is explained how to use it.

  • visitor-generator-sample-generated-1.0.1.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 VisitorGeneratorSampleExplained.pdf then it is identical to the code in this JAR file.

  • visitor-generator-sample-implemented-1.0.1.jar contains the code generated by the visitor generator and manually implemented. This code runs as defined in the use case described in documentation VisitorGeneratorSampleExplained.pdf.

The code in visitor-generator-sample-implemented-1.0.1.jar and visitor-generator-sample-source-1.0.1.jar must be compiled in the same classpath to run the samples successfully.

Copyright

Copyright by Walter Lyrer

Disclaimer

The author cannot be made responsible for any damage caused by the Visitor Generator.
The usage of the Visitor Generator is on own risk.
The code is designed and implemented on best know-how and with good intentions by the author.
Especially is to mention that the generated code of the Visitor Generator is not guaranteed to run instantly correct.
Manual supervision is necessary.

Author

Walter Lyrer

Other projects from same author

Jacoge Java Generator Eclipse Plugin
Converter Generator
Strategy/State Generator
Named Parameter Converter

Project Members:


Related

Wiki: Home