you could read the metadata
# kapt
j
you could read the metadata
c
How do you read the metadata?
g
There is no official way as I understand. You can use https://github.com/Takhion/kotlin-metadata Also this article from @Eugenio (author of kotlin-metadata) can be interesting for you: https://medium.com/@workingkills/pushing-the-limits-of-kotlin-annotation-processing-8611027b6711
c
Kotlin-metadata is exactly what I was looking for. And it looks well written 👍🏻. I found something else that worked in the same direction, but isn’t as complete or good. Thanks!
🎉 1
e
FYI I'll release a big update soon that will make it way better
👍 2
g
Hope for update of docs too 😬
e
That's part of it ;)
👍 1
c
While you’re here @Eugenio, is it possible to get the annotation mirrors for a property, its getter and it’s setter? I haven’t tried yet, but I did notice its tricky in a java
Proxy
, using the get or set
Method
reflection reference.
e
@christopher it's possible! do you need it right now, or could you wait a few days?
c
Hehe, a few days is awesome. Good to know it is possible 👍🏻
@Eugenio I’ve been using kotlin-metadata to write my annotation processor. It’s working very well 👍🏻 😊
👏 1
🎉 3