目录
示例:DataAccessException展开后导出继承关系结果
查看类的所有子类和父类
在Eclipse和IntelliJ IDEA中,都可以在菜单栏中点击Navigate -> Type Hierarchy,查看当前类的所有子类和父类,并且可以看到该操作的快捷键。
IntelliJ IDEA中,查看一个类的所有子类和父类的快捷键是Ctrl+H。
如,打开DataAccessException,按下Ctrl+H,在右侧展示该类的所有子类和父类:
点击展开后可以看到更深一层的子类,很直观,很方便。
复制类继承关系或导出继承关系到文件
点击打开的右侧继承关系的窗口,上面菜单栏的导出按钮,如上图。
只是复制的话,可以点击copy进行复制。
如果要保存到文件,选择保存路径和文件名,点击save,就保存到文件了。
如果要看更详细的,要先展开然后点击导出,该导出功能只能导出页面上展开展示的类。
示例:DataAccessException展开后导出继承关系结果
Throwable (java.lang)
Exception (java.lang)
RuntimeException (java.lang)
NestedRuntimeException (org.springframework.core)
DataAccessException (org.springframework.dao)
NonTransientDataAccessException (org.springframework.dao)
CleanupFailureDataAccessException (org.springframework.dao)
DataIntegrityViolationException (org.springframework.dao)
DuplicateKeyException (org.springframework.dao)
DataSourceLookupFailureException (org.springframework.jdbc.datasource.lookup)
UncategorizedDataAccessException (org.springframework.dao)
SQLWarningException (org.springframework.jdbc)
MyBatisSystemException (org.mybatis.spring)
UncategorizedSQLException (org.springframework.jdbc)
InvalidDataAccessResourceUsageException (org.springframework.dao)
RecordTypeNotSupportedException (org.springframework.jca.cci)
TypeMismatchDataAccessException (org.springframework.dao)
InvalidResultSetAccessException (org.springframework.jca.cci)
InvalidResultSetAccessException (org.springframework.jdbc)
IncorrectUpdateSemanticsDataAccessException (org.springframework.dao)
BadSqlGrammarException (org.springframework.jdbc)
CciOperationNotSupportedException (org.springframework.jca.cci)
NonTransientDataAccessResourceException (org.springframework.dao)
DataAccessResourceFailureException (org.springframework.dao)
InvalidDataAccessApiUsageException (org.springframework.dao)
SqlXmlFeatureNotImplementedException (org.springframework.jdbc.support.xml)
PermissionDeniedDataAccessException (org.springframework.dao)
DataRetrievalFailureException (org.springframework.dao)
IncorrectResultSizeDataAccessException (org.springframework.dao)
EmptyResultDataAccessException (org.springframework.dao)
IncorrectResultSetColumnCountException (org.springframework.jdbc)
LobRetrievalFailureException (org.springframework.jdbc)
TransientDataAccessException (org.springframework.dao)
TransientDataAccessResourceException (org.springframework.dao)
ConcurrencyFailureException (org.springframework.dao)
PessimisticLockingFailureException (org.springframework.dao)
DeadlockLoserDataAccessException (org.springframework.dao)
CannotSerializeTransactionException (org.springframework.dao)
CannotAcquireLockException (org.springframework.dao)
OptimisticLockingFailureException (org.springframework.dao)
QueryTimeoutException (org.springframework.dao)
RecoverableDataAccessException (org.springframework.dao)
ScriptException (org.springframework.jdbc.datasource.init)
CannotReadScriptException (org.springframework.jdbc.datasource.init)
ScriptParseException (org.springframework.jdbc.datasource.init)
ScriptStatementFailedException (org.springframework.jdbc.datasource.init)
UncategorizedScriptException (org.springframework.jdbc.datasource.init)
没有图更直观,但是复制或导出后可以进行整理使用。