https://kotlinlang.org logo
#kapt
Title
# kapt
j

jw

03/06/2018, 3:52 PM
you could read the metadata
c

christopher

03/06/2018, 4:16 PM
How do you read the metadata?
g

gildor

03/07/2018, 1:33 AM
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

christopher

03/07/2018, 2:35 AM
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

Eugenio

03/07/2018, 8:37 AM
FYI I'll release a big update soon that will make it way better
👍 2
g

gildor

03/07/2018, 8:40 AM
Hope for update of docs too 😬
e

Eugenio

03/07/2018, 8:43 AM
That's part of it ;)
👍 1
c

christopher

03/07/2018, 3:27 PM
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

Eugenio

03/07/2018, 3:30 PM
@christopher it's possible! do you need it right now, or could you wait a few days?
c

christopher

03/07/2018, 3:46 PM
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
4 Views