The Strategy/State Generator has the following API class:
ch.lyrer.walter.generator.strategystate.api.IGeneratorThis API class has two methods:
setGlobalPropertiesgenerateSome Global Properties must be set with method setGlobalProperties before calling the generate method.
The method setGlobalProperties accepts an instance having type GlobalProperties as input parameter. Details about GlobalProperties can be seen in the JavaDoc (which are provided in the downloaded Zips).
The method generate accepts an instance having type GeneratorIn as input parameter. Details about GeneratorIn can be seen in the JavaDoc (which are provided in the downloaded Zips).
An interesting part of type GeneratorIn is the property List<? extends Enum<?>> conditionValueList.
This list must be filled with enumeration values of a type defined by the programmer. It is assumed that each enumeration value represents a strategy/state. Thus it is expected that such an enumeration exists or is created before the generator is invoked.
Copyright by Walter Lyrer
The author cannot be made responsible for any damage caused by the Strategy/State Generator.
The usage of the Strategy/State 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 Strategy/State Generator is not guaranteed to run instantly correct.
Manual supervision is necessary.
Walter Lyrer
Jacoge Java Generator Eclipse Plugin
Converter Generator
Visitor Generator
Named Parameter Converter