AST Reproduce Plugin

AST Reproduce is a plugin for the Eclipse IDE. The purpose of this plugin is to generate code, that creates an Abstract Syntax Tree (AST) node. AST Reproduce expects as input an example AST node.

AST Reproduce Plugin

AST Reproduce Plugin

     

AST Reproduce is a plugin for the Eclipse IDE. The purpose of this plugin is to generate code, that creates an Abstract Syntax Tree (AST) node. AST Reproduce expects as input an example AST node. The code generated by AST Reproduce creates AST nodes that are equal to the provided example node. This example AST node can be delivered either programatically or by the AST Viewer. The AST Viewer is a plugin that displays an AST as tree graphically.

The AST Reproduce plugin is of use for you whenever you need to programatically create an AST node. For example, you want to write a Quick Fix for Eclipse that creates a singleton accessor ('getInstance()') method for the current class. Instead of writing the code to create this Method
Declaration by hand, mark an existing getInstance() method and let AST Reproduce generate the code. After code has been generated, modify it to meet your needs. You can see this process visually: follow the link to the "Flash demo" at the end of this page. AST Reproduce can be also a help for you if you write a new refactoring or if you develop an application that manipulates Java code.

for more information click this link.

http://astreproduce.thomaskuhn.ch/index.php/Main_Page