Functions Calls inside a Function

45 views
Skip to first unread message

Anshu Maheshwari

unread,
Nov 11, 2013, 3:32:12 AM11/11/13
to javap...@googlegroups.com
Hello everyone.

I was exploring the use of JavaParser and had a problem...
Is there any way  by which i can figure out that which all functions are called inside a particular  function?


eg:

class Fun
{
void f1()
{

}
}
class Test
{
void fun()
{ Fun f=new Fun();
f.f1();
f2();
f3();
System.out.println("hello");
}
}

then the output should be somewhat like:

fun()
f.f1(), f2(),f3();

is there any way to do so?

Please suggest some way.


Anshu
Reply all
Reply to author
Forward
0 new messages