Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jhump/tru-reflect
- Owner: jhump
- License: apache-2.0
- Created: 2015-03-22T02:18:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T14:52:08.000Z (over 6 years ago)
- Last Synced: 2023-02-28T22:12:39.241Z (over 1 year ago)
- Topics: annotation-processor, annotations, java, reflection
- Language: Java
- Homepage:
- Size: 805 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.)