Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Inserting AST Nodes at every Statements
Inserting AST Nodes at every Statements [message #524859] Fri, 02 April 2010 22:41 Go to next message
Eclipse UserFriend
Hi everybody!! Smile

I tried searching the forums for the answer but couldn't quite find it. My problem is this:

I want to insert AST Nodes at every Statements. I can get the Statements from the CompilationUnit.

Here begins my problem, I'dont know how to put them in the tree at the position I got from the Statements in the CompilationUnit

I'm sorry that say poor english
Re: Inserting AST Nodes at every Statements [message #526096 is a reply to message #524859] Thu, 08 April 2010 12:44 Go to previous message
Eclipse UserFriend
You should look at the ASTRewrite. You probably need to check the parent of the statement to know how to add the new node.
Please describe what you are doing for further help.

Olivier
Previous Topic:How to automatically correct all class' package declarations
Next Topic:Compiler compliance 1.4 compiles String.contains
Goto Forum:
  


Current Time: Thu Mar 20 15:31:20 EDT 2025

Powered by FUDForum. Page generated in 0.03642 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top