Teocali
Teocali

Reputation: 2704

How to find method annotated with a specific annotation without a specific argument set?

Example :

I want to have all the instance of :

@Test
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);

but not

@Test( group="wazoo")
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);

Upvotes: 0

Views: 197

Answers (1)

Bas Leijdekkers
Bas Leijdekkers

Reputation: 26482

This is currently a bit tricky because of a bug in SSR, but it's possible using a little script.

Search Pattern:

@$Annotation$
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);

Click Edit variables... and edit Annotation:
Text/regexp: Test
Script text: __context__.parent.parameterList.attributes.length == 0

Upvotes: 1

Related Questions