Delphi 6 是否有一个实用程序可以分析类层次结构并可以查询方法祖先?
Delphi 6 是否有一个工具可以分析应用程序的类层次结构并回答有关特定方法的问题?我可以使用一个可以采用特定方法名称的工具,它会显示调用层次结构中的哪些类实现该方法、每个继承级别(抽象、重写等)的方法特征、每个级别的调用主体可以看到该方法的实现在哪里只是一个存根,以及每个实现是否调用继承的方法。
Is there a tool for Delphi 6 that can analyze the class hierarchy of your application and answer questions about particular methods? I could use a tool that could take a particular method name and it would show which classes in the call hierarchy implement that method, the method traits at each inheritance level (abstract, overridden, etc.) the body of the call at each level I could see where the method's implementation is merely a stub, and if each implementation calls the inherited method or not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自从我开始 OO 开发(1998 年)以来,我一直在寻找这样的工具。这对于探索 VCL 或任何其他您(尚)不熟悉的库会有很大帮助。重新熟悉大型代码库的某些部分也很棒。不过还没找到。
Gerrit Beuze 的 Modelmaker 很接近。它可以读取您的代码,然后您可以探索您的类层次结构。在标准设置中,您的类位于左上角的树形或列表中,左下角为所选类的方法声明,当您选择正确的视图时,方法实现可以显示在窗口的右侧部分。
ModelMaker Code Explorer 在 IDE 中执行相同的操作(使用 IDE 的代码当然是编辑器),但没有类层次结构。
我还没有找到一种方法,使用 ModelMaker 或任何其他工具,在“以方法为中心”的视图中显示这些内容。类似于 ModelMaker 的左侧,但右侧显示了类层次结构中每个级别的实现(包括虚拟/覆盖等)修饰符,这些修饰符通常在实现部分中看不到。如果它也能够发现丢失的“继承”调用,那就太好了。
I have been looking for such a tool since I started OO development (1998). It would be a great help in exploring the VCL or any other library you are not (yet) familiar with. It would also be great to re-familiarize yourself with parts of a large code base. Haven't found one yet though.
Modelmaker by Gerrit Beuze comes close. It can read in your code and you can then explore your class hierarchy. In the standard setup you have your classes in a tree or list in the upper left, the method declarations for the selected class in the lower left and the method implementions can be shown in the right part of the window when you select the correct view.
ModelMaker Code Explorer does the same kind of thing in the IDE (using the IDE's code editor of course), but without the class hierarchy.
I have not found a way yet, with ModelMaker or any other tool, to show this stuff in a "method centered" view. Something like the left side of ModelMaker, but with the right side showing the implementations at each level in the class hierarchy (including the virtual/override etc) modifiers that you normally do not see in the implementation section. Would be nice if it also were able to spot missing "inherited" calls.