开发者

Java library for code analysis

开发者 https://www.devze.com 2022-12-30 10:49 出处:网络
Is there any Java library, that can help in building AST from the specified java source file and vice versa (generate code from the ASTree o开发者_如何转开发bject)? I need something like this, but wit

Is there any Java library, that can help in building AST from the specified java source file and vice versa (generate code from the ASTree o开发者_如何转开发bject)? I need something like this, but with an API, allowing to access the generated tree programmatically.


Everything's already available within the Eclipse core. Here's a page with a small example of how to use org.eclipse.jdt.core.dom.ASTParser to create your desired AST datastructure.

0

精彩评论

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