Given the following example:
public class Foo {
public void myMethod(Bar arg) {
SomeOtherClass.baz(arg);
....
}
}
I would like to have a way to perform a search of Bar.* within the scope of Foo.myMethod() and all methods that arg is passed to. In other words, where are all the places within the code where a method is called or a field is referenced on arg for all code-paths starting with Foo.myMethod()?
Notes: I would prefer to do this in Eclipse but am also open to using other tools (under Linux would be great — windows if needed).
Look at a (the?) great IDE: IDEA IntelliJ (12 has just been released :)) and its famous Structural Search: http://www.jetbrains.com/idea/documentation/ssr.html