In Eclipse, is it possible to find all methods in project that take a certain parameter type?(在 Eclipse 中,是否可以在项目中找到采用某种参数类型的所有方法?)
问题描述
所以这基本上是我的问题.我在参数化方法中将所有方法 ArrayLists 转换为 HashMaps,但我不想将所有 ArrayLists 转换为 HashMaps,因为有一些在本地使用.这更像是一种好奇心,但它会很有用.
So that's basically my question. I'm converting all methods ArrayLists to HashMaps in parameterized methods, but I don't want to convert all ArrayLists to HashMaps since there are a few that are used locally. This is more of a curiosity than anything, but it would be useful.
那么,在 Eclipse 中,是否可以在项目中找到所有采用某种参数类型的方法?
So, in Eclipse, is it possible to find all methods in project that take a certain parameter type?
推荐答案
按 Ctrl+H 或从菜单栏 Search - 搜索 ...,然后选择 Java 搜索:
Press Ctrl+H or from menu bar Search - Search ..., then choose Java Search:
然后单击限制为 - 匹配位置(选择 15 个中的 x 个):
Then click Limit To - Match locations (x of 15 selected):
这应该给你想要的.
这篇关于在 Eclipse 中,是否可以在项目中找到采用某种参数类型的所有方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Eclipse 中,是否可以在项目中找到采用某种参数类型的所有方法?
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
