|
|
|
|
Re: scanning method bodys for method invocations [message #653120 is a reply to message #653109] |
Tue, 08 February 2011 10:03  |
Eclipse User |
|
|
|
On 2/8/2011 8:09 PM, mc.platenius@gmail.com wrote:
> One further question:
>
> SearchEngine.searchDeclarationsOfSentMessages does not find constructor
> calls.
> How can I define a search for constructor calls?
Well.. the JDT/Core search API treats constructors as different from
methods. See type hierarchy of
org.eclipse.jdt.internal.core.search.matching.JavaSearchPatt ern.
Don't think there is an API for constructor calls. You are on your own
for that :) (Though you can probably write some code on the lines of
SearchEngine.searchDeclarationsOfSentMessages to search for constructors.)
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds