Given an ANTLR Java Grammar - what java source code would I write to get a list of method names in a java source listing?
eg for the following
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
new HelloWorld().printHelloWorld();
}
private void printHelloWorld() {
// TODO Auto-generated method stub
System.out.println("Hello World");
}
}
would return
main
printHelloWorld