Abstract
A PEC is a Pattern Enforcing Compiler, which is like a conventional compiler only extended to include the extra checks needed to enforce design patterns. PECs are currently a research project and the PEC written is targeted at the Java programming language. This paper: Describes the PEC Describes how to use the PEC Demonstrates how the PEC combines static testing, dynamic testing (unit testing), and code generation synergistically into one utility Shows that the user of the PEC can write their own design patterns and have the compiler enforce them The PEC is believed to be unique in statically testing, dynamically testing, generating code and being user extendable. The PEC is stable enough for production code and is available for free download under the Lesser GNU General Public License (Lovatt 2004). The PEC makes extensive use of reflection (runtime type identification); both when testing that a class conforms to pattern and also to allow the compiler to be user extendable.
Original language | English |
---|---|
Title of host publication | Proceedings of the 2nd Asia-Pacific conference on Conceptual modelling |
Editors | Sven Hartmann, Markus Stumptner |
Place of Publication | Sydney, NSW |
Publisher | Australian Computer Society |
Pages | 69-78 |
Number of pages | 10 |
Volume | 43 |
ISBN (Print) | 1920682252, 9781920682255 |
Publication status | Published - 2005 |
Event | 2nd Asia-Pacific Conference on Conceptual Modelling, APCCM - 2005 - Newcastle, Australia Duration: 30 Jan 2005 → 4 Feb 2005 |
Other
Other | 2nd Asia-Pacific Conference on Conceptual Modelling, APCCM - 2005 |
---|---|
Country/Territory | Australia |
City | Newcastle |
Period | 30/01/05 → 4/02/05 |
Keywords
- Compilers
- Design patterns
- Dynamic checking
- Extendable compiler
- Pattern Enforcing Compiler
- PEC
- Static checking
- Unit testing