Java源代码解析器 [英] Java source code parser
本文介绍了Java源代码解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要以编程方式从Java源文件中提取方法定义/实现,你能推荐一些我可以使用的方便的库吗?
谢谢。
I need to programmatically extract method definition/implementation from Java source file, could you recommend any handy library that I can use? Thanks.
推荐答案
另一种选择是 Jflex 和 CUP 。根据我的使用经验,我比ANTLR更喜欢语法。但是,在IDE支持和文档方面,ANTLR得分更高。
Another option is Jflex and CUP. As per my usage experience, I liked the syntax more than ANTLR. However ANTLR scores more when it comes to IDE support and documentation..
这篇关于Java源代码解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文