开发者

Jad/JadClipse for Scala?

Is there something equivalent or similar to 开发者_JAVA技巧Jad/JadClipse for Scala? It would be nice to be able to view the source for Lift from within Eclipse via "Open Declaration".


I don't know of any decompiler, but I think what you want to do just attach the source to the jar containing classes.

Just right-click on the lift-jar in the package explorer and choose properties. There you can specify a source location. I believe that an attached source location will override an installed jad-plugin.

If you're using maven and m2eclipse, you can simply right-click the lift-dep. -> Maven -> download sources. That will download the -sources.jar and automatically attach.


I man not sure you could get back the exact scala source, but at least you could try and see what the nsc bytecode looks like in Java.

This thread mentions (not tested myself) the Soot Eclipse plugin.

So I might settle on the Eclipse plugin for Soot, which can for example display bytecode using the Grimp notation (well, the following screenshot shows Jimple, but conveys the idea):

Jad/JadClipse for Scala?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜