Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhump/tru-reflect

Use core reflection in your annotation processors
https://github.com/jhump/tru-reflect

annotation-processor annotations java reflection

Last synced: 26 days ago
JSON representation

Use core reflection in your annotation processors

Awesome Lists containing this project

README

        

# tru-reflect

True Reflect provides the ability to use core reflection APIs, instead of `javax.lang.model` APIs (elements and mirrors), when implementing an annotation processor.

This works by synthesizing classes at runtime. Since the compiler hasn't finished compiling the classes yet, the generated classes have no method implementations and aren't usable to actually instantiate or otherwise interact with the classes. But core reflection APIs can be used to query for annotated elements, annotations, etc.

(Exported from http://code.google.com/p/tru-reflect on 3/21/2015.)