Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 eclipse 中找到所有的 getter 方法?
我尝试了 get* with methods ,但它也会返回所有以 get 开头的非 getter 方法。我只想要getter方法。
编辑: 我想从工作区中删除所有 getter 方法。
为了做你想做的事(不管是什么原因),使用Find Files更容易:
要缩小范围,您可以使用Selected resources或Enclosure projects。
编辑:正则表达式应该有点不同: (?s)(is|get)([a-zA-Z0-9]*\(\)\s*\{)
(?s)(is|get)([a-zA-Z0-9]*\(\)\s*\{)