I'm writing a Java program for an assignment that starts by taking 2 user input:
- the name of a compiled java class file
- the name of a method
Then, the program will parse the java class, search for the method that the user enters, and search the method for other methods called by that method, and the methods called by those methods.
Then, from those data, the program should output the method call trees as such
- classA.method1(parameters)
- classA.method2(parameters)
- classA.method3(parameters)
- classB.method1(parameters)
- classA.method2(parameters)
Can anyone tell me what should I use or learn in order to perform these operations?