Extends the Java 1.4 frontend
This is an example of how the Java 1.4 frontend can be extended to perform additional analyses. This extension implements a set of object-oriented metrics proposed by CHidamber and Kemerer in: A Metrics Suite for Object Oriented Design. The implementation is heavily based on collection attributes to show case that functionality in JastAdd.
This project builds on the Java 1.4 Frontend. To run it, you need to download both this project and the Java1.4Frontend, and place them in sibling directories. The modules defined in this project will make use of the abstract syntax and attributes defined in the Java1.4Frontend, and also refine the abstract syntax and add new attributes.
This module contains the six proposed metrics. They are all implemented using collection attributes
This module collects the types to be presented and contains the code to display the result.
ant |
generate all java files and compile them |
ant test |
run all test cases |
ant clean |
remove all generated files and all the class files for both generated and handwritten java files |
ant gen |
generate all java files |
ant cleanGen |
remove all generated files and their class files. |