Say I have:
val fullObjectName = "my.pck.MyObject"
and I like to use fullObjectName
somehow instead of hardcoding this (at least for the object part):
q"my.pck.MyObject.myObjectMethod()"
What would be the best way to achieve this?
Thanks!
Say I have:
val fullObjectName = "my.pck.MyObject"
and I like to use fullObjectName
somehow instead of hardcoding this (at least for the object part):
q"my.pck.MyObject.myObjectMethod()"
What would be the best way to achieve this?
Thanks!
After a lot of searching around, the following seems to work, though I don’t know if it’s optimal:
${ctx.mirror.staticClass("my.pck.MyObject").companion}.myObjectMethod
Hope it’s helfpuf to somebody!