I saw a similar post from one of the page of stackoverflow
But the code on usage holds a method findMethod. What is type in that method argument. Please suggest a code having that argument value.
IMethod m = findMethod(type, "world");
Set<IMethod> methods = new HashSet<IMethod>();
methods = callGen.getCallersOf(m);
for (Iterator<IMethod> i = methods.iterator(); i.hasNext();)
{
System.out.println(i.next().toString());
}