Search code examples
javastring-parsing

Java source code parser


I need to programmatically extract method definition/implementation from Java source file, could you recommend any handy library that I can use? Thanks.


Solution

  • 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..