Hi, I want to extract method body from a Java Source Code. Suppose I have the following code:
public class A{
public void print(){
System.out.println("Print This thing");
System.out.println("Print This thing");
System.out.println("Print This thing");
}
}
My objective is not to extract the method name (in this case print) but also the bode of the method(In this case the three print statement inside the print method). Can anyone suggest how can I do so? Is their any library available for doing so.