简体   繁体   English

如何从intellij中的类中分辨出所有已实现的接口和超类?

[英]How to tell all implemented interfaces and superclasses from a class in intellij?

It seems like intellij knows the class and interface hierarchies for all of my classes, how do I get it to share that information with me? 看来intellij知道我所有类的类和接口层次结构,如何与我共享这些信息? I can navigate manually to the superclasses by clicking on whatever it lists as extending, but it's a hassle if the chain is deeper than one. 我可以通过单击列为扩展的任何东西来手动导航到超类,但是如果链深于一个,那是很麻烦的。

In Intellij Idea there is a shortcut called Type hierarchy Ctrl + H 在Intellij Idea中,有一个称为“ 类型层次结构”的快捷键Ctrl + H

Example executed on the java.io.Closable interface, works the same way for super classes. java.io.Closable接口上执行的示例对于超类也以相同的方式工作。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IntelliJ IDEA:有没有办法列出一个类及其父类实现的所有接口? - IntelliJ IDEA: Is there a way to list all interfaces implemented by a class and its parents? 从超类或接口列表中获取子类实例 - Get subclass instance from list of superclasses or interfaces 如何在实现的接口类中重新实例化Object数组? - How to reinstantaite Object arrays in implemented class of Interfaces? 如何在Java中获取接口或超类的映射 - How to get a map of interfaces or superclasses in java 在IntelliJ中重写方法时,如何从超类中查看方法的参数类型? - How to see the arguments types of the methods from the superclasses when overriding methods in IntelliJ? OOP如何判断从实现的接口调用哪个类方法 - OOP How to tell which class method gets invoked from implemented interface 从代理获取已实现的接口 - Getting implemented interfaces from the proxy JMockit:如何避免超类的构造函数中的代码 - JMockit : How to avoid code from superclasses' constructors 实现和已经由超类实现的接口? - implementing and interfaces which already implemented by super class? 如何对使用尚未作为方法参数实现的接口的类执行 JUnit 测试? - How to perform JUnit testing on a class that uses interfaces not yet implemented as method parameters?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM