Structural Search for all method calls that have an annotation

I would like to create a Structural Search for all method calls to methods that are annotated with a specific annotation.

For example, imagine wanting to find all method calls to methods marked @Deprecated.

I can start with this template:

    $Instance$.$MethodCall$($Parameter$)

But then what do I do to the MethodCall variable?

3 comments
Comment actions Permalink

It is not currently possible, please create YouTrack ticket

0
Comment actions Permalink

nicity wrote:

It is not currently possible, please create YouTrack ticket

Has this since been implemented? I am using Intellij Idea 13.1.5 and am interested in doing something similar to the user who asked the question originally.

I have also started wtih the same template:

$Instance$.$MethodCall$($Parameter$)


I wonder if it can be done in the Edit Variables window, by using script constraints, but I can't any documentation or examples on how to use this feature?


Thanks,
Peter

0
Comment actions Permalink

Corresponding ticket (https://youtrack.jetbrains.com/issue/IDEA-81235) is not marked as fixed at the moment. You can vote for it to get updates.

0

Please sign in to leave a comment.