Scripts

Scripting opens up endless possibilities for working with ProRefactor and the syntax tree.

There are various scripting languages available for running on the Java Virtual Machine (JVM). Those include Groovy, Jython, JRuby, Rhino Javascript, and others. Any of those should allow you to access ProRefactor as a library, and run the parsing and analysis programs it contains. I chose Groovy because I found that Groovy had the cleanest interfaces between its scripts and existing Java applications and libraries like ProRefactor.

See Standalone Jar File for setting up ProRefactor for use from a scripting environment.