Interface InheritDocTree
- All Superinterfaces:
DocTree, InlineTagTree
public interface InheritDocTree extends InlineTagTree
A tree node for an
@inheritDoc inline tag.
{@inheritDoc}
{@inheritDoc supertype}
- API Note:
- There is no requirement that the comment containing the tag and the comment containing the inherited documentation should either be both Markdown comments or both traditional (not Markdown) comments.
- Since:
- 1.8
Nested Class Summary
Nested classes/interfaces declared in interface DocTree
DocTree.Kind
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
default ReferenceTree |
getSupertype() |
Returns the reference to a superclass or superinterface from which to inherit documentation, or null if no reference was provided. |
Methods declared in interface InlineTagTree
getTagName
Method Details
getSupertype
default ReferenceTree getSupertype()
Returns the reference to a superclass or superinterface from which to inherit documentation, or
null if no reference was provided.- Implementation Requirements:
- this implementation returns
null. - Returns:
- the reference to a superclass or superinterface from which to inherit documentation, or
nullif no reference was provided - Since:
- 22
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/com/sun/source/doctree/InheritDocTree.html