| is it possible to get the AST node of an javax.model...Element? [message #897529] |
Tue, 24 July 2012 08:27 |
Santiago Missing name Messages: 11 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
thank you
|
|
|
Powered by
FUDForum. Page generated in 0.05133 seconds