LemaireEmilien / calculator-cucumber-2024

This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
0 stars 0 forks source link

Add visitors for the counting methods #15

Closed tommens closed 7 months ago

tommens commented 7 months ago

Issue You did not fix the problem that the counting methods (countOps, countNbs, countDepth) are still part of the Expression class hierarchy. Ideally, these would also need to be moved into a Visitor design pattern. (Each type of counting would correspond to a separate visitor.)

Classification suggested code refactoring