I'm having a hard time to find the class some MethodInvocation belongs to. For example, I have the following:
class ClassToCall {
public void someMethod() {
....
}
}
class Caller {
private ClassToCall var;
public void otherMethod() {
this.var.someMethod();
}
}
I need to know that in someMethod invocation in Caller.otherMethod() I am calling a method from ClassToCall, but all I got from filter(javalang.tree.MethodInvocation) in Caller is
I'm having a hard time to find the class some
MethodInvocation
belongs to. For example, I have the following:I need to know that in
someMethod
invocation inCaller.otherMethod()
I am calling a method fromClassToCall
, but all I got fromfilter(javalang.tree.MethodInvocation)
inCaller
isIs there a way to achieve what I need?