Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » is it possible to get the AST node of an javax.model...Element?(Modifying the annotated class from its annotation processor)
is it possible to get the AST node of an javax.model...Element? [message #897529] Tue, 24 July 2012 12:27
Santiago Ruiz is currently offline Santiago Ruiz
Messages: 13
Registered: July 2009
Junior Member
I've been reading lombok code to get the answer for this question. It seems they use the -javaagent option to get control of the ast. It seems too that they modify jdt classes to get this functionality.

I hope jdt has a function that allows me to get it working directly. That is:

Inside an annotation processor 'process' method get the rootElements of the round and get the correponding dom's to be able of modify only the class file

I've readed surfing the net about casting between javax.lang.model.element.Element and the corresponding AST node but it seems not possible after reading the jdt help.

perhaps i'm a little blind. In any case, i need help Confused

thank you
Previous Topic:Eclipse not opening xhtml pages
Next Topic:@NonNoull fields early access
Goto Forum:
  


Current Time: Thu Oct 23 06:11:16 GMT 2014

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

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