java - Search for all instances of foo(Bar.class) -
does eclipse have easy way search invocations of method based on type of argument(s)? example if a
, b
instance of foo
, x
, y
instances of bar
, want find foo(x)
, foo(y)
not foo(a)
or foo(b)
.
you temporarily declare overloaded "fake" method foo specific types of parameters in interested. relevant invocations of real foo should resolved fake one. "find references" fake foo (before deleting it).
[edit]
this work provided constraints regarding subclassing hold. otherwise, superset of invocations in interested, may still narrow enough useful.
Comments
Post a Comment