[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] equality of MethodInvocation

Hi All,

I will just go directly to the point. This is my scenario: my plugin scans a java file, get all the MethodInvocation nodes and holds them in a data structure like an ArrayList, after a little modification on the file, for instance, comment a statement with a MethodInvocation, it rescans the java file and gets another ArrayList which contains a list of MethodInvocation nodes. As you can see, besides the one MethodInvocation node I commented, the others maintain to be there. So what I am trying to achieve is to find a way to compare two MethodInvocation nodes which share the same physical location in the java file within two scannings and still return a true value.

I tried ASTNode.subtreeMatch.match(MethodInvocation node1, MethodInvocation node2) but without success.

I'd really appreciate someone that can help me out.
Thanks,
Jing