Martinho0330 / javaparser

Automatically exported from code.google.com/p/javaparser
0 stars 0 forks source link

Add support for editing AST nodes or create new ones #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The AST nodes are all read only. Will be very useful if them can be edited
to made changes in a parsed CompilationUnit and then save it again to the
.java file, this is useful for refactoring changes.
Create a new CompilationUnit without parse a java file can be useful too.

Original issue reported on code.google.com by jges...@gmail.com on 29 May 2008 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by jges...@gmail.com on 3 Jul 2008 at 8:26

GoogleCodeExporter commented 9 years ago
I'm writing a Java source obfuscator and need to rename variables and types to 
nonsensical names. Although it's fairly easy to add setName to the appropriate 
classes myself, it would be nice if it was in the library as provided.

Original comment by msa...@gmail.com on 13 Jul 2008 at 9:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
All nodes now have setter methods.
Empty lists are still null, to initialize a list call the setter with a new 
list.

Original comment by jges...@gmail.com on 21 Jul 2008 at 12:57