[antlr-interest] Java-to-Java transformation/refactoring

Andrus Salumets skisoid at ut.ee
Mon Dec 29 13:56:58 PST 2008


Hi,

I'm an ANTLR(and parsers) beginner and I'm trying to translate
Java JDBC code into Spring JdbcTemplate. I use
a Java tree grammar available in the ANTLR site.

I'll get it probably done with my current attept by
using the rewrite option and StringTemplates but it
doesn't feel right because it's kind of string manipulation.
I suspect that some kind of tree transformation would
be a better tool...

So my question is:
Is there any better solution doing this kind of
refactoring using ANTLR?

Thanks in advance,
Andrus Salumets


More information about the antlr-interest mailing list