This shows you the differences between two versions of the page.
padl_generator [2014/02/16 09:26] yann created |
padl_generator [2017/09/06 01:54] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PADL Generator ====== | ||
- | |||
- | Because all PADL creators are builders (as in the Builder design pattern) and must conform to the same interface ''padl.kernel.ICodeLevelModelCreator'' provided by [[PADL]], it is simple to provide a unified entry point for all of them. Also, the creation of interesting models often require the additional steps of: | ||
- | - Annotating the models with information about lines of code; | ||
- | - Annotating the models with information about conditional statements; | ||
- | - Adding appropriate listeners (if desired); | ||
- | - Handling special files, such as Eclipse ''.project'' files or AOL CLD files; | ||
- | - ... | ||
- | |||
- | So, the class ''padl.generator.helper.ModelGenerator'' in the project ''PADL Generator'' provides this entry point and should be used unless there are compelling reasons not to do so. The direct use of a creator will throw a warning at run-time. | ||