tree-ware / tree-ware-kotlin-core

Apache License 2.0
1 stars 0 forks source link

Generate the forEach and Visitor code in org.tree_ware.model.traversal #4

Open deepak-nulu opened 3 years ago

deepak-nulu commented 3 years ago

This code traverses multiple models and each model can have a different template parameter. The code can also have a different number of leader and follower models. Kotlin does not have language features that will allow a single implementation to handle all cases. So code generation is required.

This automation is beneficial for 2 reasons:

  1. it will allow new variations to be added quickly
  2. it will also make it easy if/when new model classes are introduced.