[英]Can I generate the interim java code in a scala project
I am trying to use VisualVM to profile my scala application.我正在尝试使用 VisualVM 来分析我的 scala 应用程序。 I have added the Go To Source plugin for VisualVM but of course it will only recognize Java code.我已将 Go 添加到 VisualVM 的源插件,但当然它只能识别 Java 代码。 Is there a way I can specify in my project build that it should also output the interim java code?有没有一种方法可以在我的项目构建中指定它也应该 output 临时 java 代码?
I know I can use the following command to do it at a file level:我知道我可以使用以下命令在文件级别执行此操作:
scalac -Xprint:parse Main.scala scalac -Xprint:parse Main.scala
But is there a way I can generate all the java code for a project to a specific directory?但是有没有办法可以将项目的所有 java 代码生成到特定目录?
There is no interim java code.没有临时 java 代码。 Scala compiles directly to JVM classfile code, without ever becoming Java code. Scala 直接编译为 JVM 类文件代码,而不会成为 Java 代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.