What is a good way to generate code from Java?
I have a visual FlowChart app, and want to integrate some code generation for specific graphs.
So, I have mostly some objects (with names) and some connections between them (conditions).
I want these visual representation to transform in a specific type of scripting language.
Is there anything in java so that I can somehow define a template to generate my script? Eg tell the template what properties to take from the visual objects, and how to arrange them in the output language?