Sun's Jackpot offers an API for doing that. But it seems designed to
run as a NetBeans plugin. If you need to apply your changes as a kind
of batch in a headless environnment, fooling NetBeans could become a
hard job. If you need a fine customization of the renaming, Jackpot
looks ok for you.

http://jackpot.netbeans.org/docs/index.html


On Mon, Mar 2, 2009 at 11:23 PM,  <swedish_man_2007-an...@yahoo.se> wrote:
> 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.
> Sök och jämför lån hos Kelkoo.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to