Is there a good reflection library available for Scala?
Posted
by
Erik Engbrecht
on Stack Overflow
See other posts from Stack Overflow
or by Erik Engbrecht
Published on 2010-12-31T23:41:32Z
Indexed on
2010/12/31
23:54 UTC
Read the original article
Hit count: 321
reflection
|scala
I'm working on a library that needs reflection, and needs Scala-specific information as opposed to what is available via the standard Java reflection API. Right now I'm using the undocumented code in scalap (the Scala equivalent to javap) and trying to associate the data it provides with Java reflection objects so that I can call methods and such (scalap just parses class files).
I found this but there's nothing there... https://github.com/dubochet/scala-reflection
...and I've searched the Scala SVN repo for traces of it and failed to find it there, either (but it could be I just missed it).
Does anyone know of a Scala reflection library that provides information similar to what scalap provides but also allows you to call methods, access fields, etc like the Java reflection library?
© Stack Overflow or respective owner