I wrote a simple parser, which looks for comments inside SQL-Code. If it find a specific remark, the parser store data and generates some output for documentation. There are different types of comments which generates different type of documentation parts. The main idea is to generate a super class with the main methods an derive some class as an implementation for a specific comment type.
in reply to Re: OO-Perl Question: How Do I get a List of derived Classes for a Base Class?
in thread OO-Perl Question: How Do I get a List of derived Classes for a Base Class?
This is no problem until here. In the main loop parse the sql-code and had to look, which derived object matches. The parser should try to match each derived object without write down each typename.
Choosing this type of implementation, it will be easy to extend the solution by a new commenttype: Only a new derived class is needed.