EDIT: How do I use the eclipse parser to workout the type of an parameter at compile time?
I'm trying to check if a function was called by value
. So i activate the following function on the user's code:
public boolean visit(MethodInvocation node){}
My question is how to actually check whether the call was by value or by reference. I tried member functions of node
like the following:
typeArguments()
arguments()
getExpression()
and couldn't go further. For instance i tried:
List r_type= node.typeArguments();
if(r_type.toString() == "int")
{
....
}
but r_type
seems to be always empty.