Structural Search on interfaces

How do I find all instances of 'new XYX' where XYX implements some interface 'ABC' ?

Ive been playing with SSR dialog options for about 30 mins, and my search just isnt finding anything.

I tried: new $interfaceType$

and set the variable 'interfaceType' to be com.test.ABC, and clicked the "apply to hierarchy" button, but Im not getting any matches. I know there should be some.

3 comments
Comment actions Permalink

it should be like following:
new $interfaceType$()

you might need to add (optional) parameters

new $interfaceType$($params$) where params has 0..unlimited bound

Nick Pratt wrote:

How do I find all instances of 'new XYX' where XYX implements some interface 'ABC' ?

Ive been playing with SSR dialog options for about 30 mins, and my search just isnt finding anything.

I tried: new $interfaceType$

and set the variable 'interfaceType' to be com.test.ABC, and clicked the "apply to hierarchy" button, but Im not getting any matches. I know there should be some.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim

Since this issue seems to have been caused by an invalid search syntax, is there any way that the bad search could have been highlighted?

Also, could you add this example to the supplied templates (along with any others that you have encountered) - having more examples for this feature surely can't hurt.


Thanks again

0

Please sign in to leave a comment.