Serializable, Comparable<DocTree.Kind>, ConstableDocTreepublic static enum DocTree.Kind extends Enum<DocTree.Kind>
Enum.EnumDesc<E>
| Enum Constant | Description |
|---|---|
ATTRIBUTE |
Used for instances of AttributeTree representing an attribute in an HTML element or tag. |
AUTHOR |
Used for instances of AuthorTree representing an @author tag. |
CODE |
Used for instances of LiteralTree representing an @code tag. |
COMMENT |
Used for instances of CommentTree representing an HTML comment. |
DEPRECATED |
Used for instances of DeprecatedTree representing an @deprecated tag. |
DOC_COMMENT |
Used for instances of DocCommentTree representing a complete doc comment. |
DOC_ROOT |
Used for instances of DocRootTree representing an @docRoot tag. |
DOC_TYPE |
Used for instances of DocTypeTree representing an HTML DocType declaration. |
END_ELEMENT |
Used for instances of EndElementTree representing the end of an HTML element. |
ENTITY |
Used for instances of EntityTree representing an HTML entity. |
ERRONEOUS |
Used for instances of ErroneousTree representing some invalid text. |
ESCAPE |
Used for instances of EscapeTree representing some escaped documentation text. |
EXCEPTION |
Used for instances of ThrowsTree representing an @exception tag. |
HIDDEN |
Used for instances of HiddenTree representing an @hidden tag. |
IDENTIFIER |
Used for instances of IdentifierTree representing an identifier. |
INDEX |
Used for instances of IndexTree representing an @index tag. |
INHERIT_DOC |
Used for instances of InheritDocTree representing an @inheritDoc tag. |
LINK |
Used for instances of LinkTree representing an @link tag. |
LINK_PLAIN |
Used for instances of LinkTree representing an @linkplain tag. |
LITERAL |
Used for instances of LiteralTree representing an @literal tag. |
MARKDOWN |
Used for instances of RawTextTree representing a fragment of Markdown content. |
OTHER |
An implementation-reserved node. |
PARAM |
Used for instances of ParamTree representing an @param tag. |
PROVIDES |
Used for instances of ProvidesTree representing an @provides tag. |
REFERENCE |
Used for instances of ReferenceTree representing a reference to an element in the Java programming language. |
RETURN |
Used for instances of ReturnTree representing an @return tag. |
SEE |
Used for instances of SeeTree representing an @see tag. |
SERIAL |
Used for instances of SerialTree representing an @serial tag. |
SERIAL_DATA |
Used for instances of SerialDataTree representing an @serialData tag. |
SERIAL_FIELD |
Used for instances of SerialFieldTree representing an @serialField tag. |
SINCE |
Used for instances of SinceTree representing an @since tag. |
SNIPPET |
Used for instances of SnippetTree representing an @snippet tag. |
SPEC |
Used for instances of SpecTree representing an @spec tag. |
START_ELEMENT |
Used for instances of StartElementTree representing the start of an HTML element. |
SUMMARY |
Used for instances of SummaryTree representing an @summary tag. |
SYSTEM_PROPERTY |
Used for instances of SystemPropertyTree representing an @systemProperty tag. |
TEXT |
Used for instances of TextTree representing some plain documentation text. |
THROWS |
Used for instances of ThrowsTree representing an @throws tag. |
UNKNOWN_BLOCK_TAG |
Used for instances of UnknownBlockTagTree representing an unknown block tag. |
UNKNOWN_INLINE_TAG |
Used for instances of UnknownInlineTagTree representing an unknown inline tag. |
USES |
Used for instances of UsesTree representing an @uses tag. |
VALUE |
Used for instances of ValueTree representing an @value tag. |
VERSION |
Used for instances of VersionTree representing an @version tag. |
| Modifier and Type | Field | Description |
|---|---|---|
final String |
tagName |
The name of the tag, if any, associated with this kind of node. |
| Modifier and Type | Method | Description |
|---|---|---|
static DocTree.Kind |
valueOf |
Returns the enum constant of this class with the specified name. |
static DocTree.Kind[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
public static final DocTree.Kind ATTRIBUTE
AttributeTree representing an attribute in an HTML element or tag.public static final DocTree.Kind AUTHOR
AuthorTree representing an @author tag.public static final DocTree.Kind CODE
LiteralTree representing an @code tag.public static final DocTree.Kind COMMENT
CommentTree representing an HTML comment.public static final DocTree.Kind DEPRECATED
DeprecatedTree representing an @deprecated tag.public static final DocTree.Kind DOC_COMMENT
DocCommentTree representing a complete doc comment.public static final DocTree.Kind DOC_ROOT
DocRootTree representing an @docRoot tag.public static final DocTree.Kind DOC_TYPE
DocTypeTree representing an HTML DocType declaration.public static final DocTree.Kind END_ELEMENT
EndElementTree representing the end of an HTML element.public static final DocTree.Kind ENTITY
EntityTree representing an HTML entity.public static final DocTree.Kind ERRONEOUS
ErroneousTree representing some invalid text.public static final DocTree.Kind ESCAPE
EscapeTree representing some escaped documentation text.public static final DocTree.Kind EXCEPTION
ThrowsTree representing an @exception tag.public static final DocTree.Kind HIDDEN
HiddenTree representing an @hidden tag.public static final DocTree.Kind IDENTIFIER
IdentifierTree representing an identifier.public static final DocTree.Kind INDEX
IndexTree representing an @index tag.public static final DocTree.Kind INHERIT_DOC
InheritDocTree representing an @inheritDoc tag.public static final DocTree.Kind LINK
LinkTree representing an @link tag.public static final DocTree.Kind LINK_PLAIN
LinkTree representing an @linkplain tag.public static final DocTree.Kind LITERAL
LiteralTree representing an @literal tag.public static final DocTree.Kind MARKDOWN
RawTextTree representing a fragment of Markdown content.public static final DocTree.Kind PARAM
ParamTree representing an @param tag.public static final DocTree.Kind PROVIDES
ProvidesTree representing an @provides tag.public static final DocTree.Kind REFERENCE
ReferenceTree representing a reference to an element in the Java programming language.public static final DocTree.Kind RETURN
ReturnTree representing an @return tag.public static final DocTree.Kind SEE
SeeTree representing an @see tag.public static final DocTree.Kind SERIAL
SerialTree representing an @serial tag.public static final DocTree.Kind SERIAL_DATA
SerialDataTree representing an @serialData tag.public static final DocTree.Kind SERIAL_FIELD
SerialFieldTree representing an @serialField tag.public static final DocTree.Kind SINCE
SinceTree representing an @since tag.public static final DocTree.Kind SNIPPET
SnippetTree representing an @snippet tag.public static final DocTree.Kind SPEC
SpecTree representing an @spec tag.public static final DocTree.Kind START_ELEMENT
StartElementTree representing the start of an HTML element.public static final DocTree.Kind SYSTEM_PROPERTY
SystemPropertyTree representing an @systemProperty tag.public static final DocTree.Kind SUMMARY
SummaryTree representing an @summary tag.public static final DocTree.Kind TEXT
TextTree representing some plain documentation text.public static final DocTree.Kind THROWS
ThrowsTree representing an @throws tag.public static final DocTree.Kind UNKNOWN_BLOCK_TAG
UnknownBlockTagTree representing an unknown block tag.public static final DocTree.Kind UNKNOWN_INLINE_TAG
UnknownInlineTagTree representing an unknown inline tag.public static final DocTree.Kind USES
UsesTree representing an @uses tag.public static final DocTree.Kind VALUE
ValueTree representing an @value tag.public static final DocTree.Kind VERSION
VersionTree representing an @version tag.public static final DocTree.Kind OTHER
public final String tagName
public static DocTree.Kind[] values()
public static DocTree.Kind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null
© 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/DocTree.Kind.html