假设我有两个Java类,TradeType和InstrumentType.我知道在我的代码库中的某个地方有一个从TradeType映射到InstrumentType的方法.
我如何在Intellij中使用结构搜索来表示
"找到所有具有TradeType类型的参数并返回InstrumentType的方法"
我有一个名为"com.foo.BaseFoo"的抽象类
我想找到任何从BaseFoo扩展的东西上调用new()的人
我试过做一个搜索模板:
new $BaseFoo$()
Run Code Online (Sandbox Code Playgroud)
然后编辑变量,使其具有对象类型的表达式约束
com.foo.BaseFoo
Run Code Online (Sandbox Code Playgroud)
并单击"在类型层次结构中应用约束"但这不起作用.