How to get ProcessingEnvironment in JavacAnnotationHandler

55 views
Skip to first unread message

jack lee

unread,
Jul 8, 2021, 5:44:14 AM7/8/21
to Project Lombok

hi all, How to get ProcessingEnvironment in JavacAnnotationHandler, it can be retrived in LombokProcessor, but not by JavacAnnotationHandler or javacnode or jctree. is there any global static func to get it?

Rawi

unread,
Jul 8, 2021, 7:46:21 AM7/8/21
to Project Lombok
It might be possible to use the Context to get the ProcessingEnvironment (e.g. node.getContext().get(JavacProcessingEnvironment.class)) but usually you do not need it in lombok (thats why there is no method for it). If you want to create new files you should use a normal annotation processor.
Reply all
Reply to author
Forward
0 new messages