| [news.eclipse.tools.jdt] Re: How to access the ASTs that Eclipse uses? |
Walter Harley wrote:
"George Ganea" <georgeganea@xxxxxxxxx> wrote in message news:e0a3cc8e32f46bb471c20dba426000fc$1@xxxxxxxxxxxxxxxxxx
Hello,
Is there any way that one can access the ASTs that Eclipse uses? I suppose Eclipse has it's own set of ASTs for every Java source file of a Java Project at any given moment. I would like to be able to visit those ASTs instead of doing both parsing and visiting for an ICompilationUnit.
See http://www.eclipse.org/articles/article.php?file=Article-JavaCodeManipulation_AST/index.html
And in 3.4 see also: org.eclipse.jdt.ui.SharedASTProvider
Dani