【问题标题】:How to find method annotated with a specific annotation without a specific argument set?如何在没有特定参数集的情况下找到使用特定注释注释的方法?
【发布时间】:2016-03-23 09:57:37
【问题描述】:
例子:
我想要所有的实例:
@Test
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);
但不是
@Test( group="wazoo")
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);
【问题讨论】:
标签:
intellij-idea
structural-search
【解决方案1】:
由于 SSR 中的一个错误,目前这有点棘手,但可以使用一个小脚本。
搜索模式:
@$Annotation$
$MethodType$ $MethodName$($ParameterType$ $ParameterName$);
点击Edit variables...并编辑Annotation:
文本/正则表达式:Test
脚本文字:__context__.parent.parameterList.attributes.length == 0