I need to programmatically extract method definition/implementation from Java source file, could you recommend any handy library that I can use? Thanks.
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..