I would like to have a reflection-like solution for displaying the called methods.
Example:
public class Foo { public void bar() { new Y().x(); } } public class Y { public void x() { } } public class Main { public static void main(String[] args) {
The output should be:
1. Foo.bar 1.2 Yx 2. Yx
Optionally, there may be an event handler that will be triggered every time the method is called (and some information can be passed as a parameter).
PS: I do not want to use this in a production environment, I only need this to display the output in a skeleton application without the copy-paste dummy.
source share