I've just started to design and write a set of Builders for modeling Eclipse's Java Abstract Syntax Trees - also known as JDT AST's. This looks very cool because the Builders can model code at a high level, whithout having to muck around with Java syntax.
For example, I'll start by creating package and class Builders that know how to adapt the code to name and context changes automatically. This will be a fundamentally more robust approach to handling many forms of change propagation in source code than with what you get using "reverse engineering" code refactoring tools. For example, you could change the package name input on the class builder, and forward regenerate the code - whereby everything would update.
11:53:02 AM
|