[antlr-interest] Can ANTLR be used for renaming a method or class/interface and all its invocations/references ?

swedish_man_2007-antlr at yahoo.se swedish_man_2007-antlr at yahoo.se
Mon Mar 2 14:23:26 PST 2009


I am searching for a library that you can use for programatically renaming classes/interfaces or renaming methods, including automatic renaming all references to the methods/types in the source code files/directories that you specify.

In other words, I am looking for a library that can do the same kind of rename-refactoring that you can do in some IDE environments (e.g. Eclipse).

Is ANTLR the tool I am looking for (?) or does somebody here know of another library that could help you to implement a method like this:
public void renameMethod(
   string nameOfClassOrInterfaceWithTheMethodToBeRenamed,
   string currentNameOfTheMethodToBeRenamed,
   string newMethodName,
   string[] sourceCodeDirectoriesWhereAllMethodUsagesShouldBeRenamed
)

If the answer is yes, then is it simple and is there any code example illustrating how to do it ?

/ Tom



      __________________________________________________________
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090302/fdd635e5/attachment.html 


More information about the antlr-interest mailing list