在 eclipse 中搜索 *.class 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6653267/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Searching through *.class files in eclipse
提问by alex28
Is it possible to search for terms (such as method names) in .class files (from Referenced Libraries) in eclipse (I am able to view them automatically with JD Java Decompiler, so if I go through various class files I can find what I'm looking for visually or by searching each individual file). I've had a similar question about locating classes and was told to use ctrl + alt + h, which allows you to locate the class hierarchy of a given class in a .class file, but that method does not seem to allow one to find interfaces by name or constructs such as methods or variables.
是否可以在 Eclipse 中的 .class 文件(来自引用库)中搜索术语(例如方法名称)(我可以使用 JD Java Decompiler 自动查看它们,所以如果我浏览各种类文件,我可以找到我正在寻找视觉或通过搜索每个单独的文件)。我有一个关于定位类的类似问题,并被告知使用 ctrl + alt + h,它允许您在 .class 文件中定位给定类的类层次结构,但该方法似乎不允许人们找到接口按名称或构造,如方法或变量。
回答by Op De Cirkel
Ctrl+H->Java Search->Search for Method
, etc, etc
Ctrl+H->Java Search->Search for Method
等等等等
回答by Rohit
Ctrl + H will bring up a Search/Find dialog. One of the tabs is Java which will let you specify what exactly you are looking for e.g. Class/MNethod etc.
Ctrl + H 将打开一个搜索/查找对话框。其中一个选项卡是 Java,它可以让您指定您正在寻找的确切内容,例如 Class/MNethod 等。