lundi 23 février 2015

Accessing method parameter names in scala using java reflection

I need to get a method's parameter name in one of my scala file. I know, by using -parameter compiler option, I can make this work in Java. However, I am not able to do this in scala,as I could not find -parameter option in scalac.


How can I achieve this ? I saw this answer in SO, but it is an old answer. Is it not possible in scala(2.11) as this option has come only in java8? Is there any hack for it ?






Aucun commentaire:

Enregistrer un commentaire