Skip to main content

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 RuizFriend
Messages: 14
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: Wed Jun 20 00:15:43 GMT 2018

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

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

Back to the top