I need to find a way to find all the methods a class is using (pay attention, not the methods declared in it). EX:
public class Bondia{
public static void main(String[] args){
System.out.println("oi");
System.out.println(new Random().nextInt(10));
}
}
In this class, for example, I need to list the methods:
-
System.out.println();
-
java.util.Random.nextInt();
- and preferably the constructor as well (
new java.util.Random()
);
Does anyone know a way to do this?