APIdia Launch Partner
Top Description Inners Methods
com.sun.source.doctree

public Interface DocTree

Known Direct Subinterfaces
com.sun.source.doctree.DocTypeTree, com.sun.source.doctree.EndElementTree, com.sun.source.doctree.EntityTree, com.sun.source.doctree.IdentifierTree, com.sun.source.doctree.InlineTagTree, com.sun.source.doctree.RawTextTree, com.sun.source.doctree.ReferenceTree, com.sun.source.doctree.StartElementTree, com.sun.source.doctree.TextTree, com.sun.source.doctree.AttributeTree, com.sun.source.doctree.BlockTagTree, com.sun.source.doctree.CommentTree, com.sun.source.doctree.DocCommentTree
Known Direct Implementers
com.sun.tools.javac.tree.DCTree

Common interface for all nodes in a documentation syntax tree.
Since
1.8

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
DocTree.Kind

Enumerates all kinds of trees.

Method Summary

Modifier and TypeMethod and Description
public <
the result type of this operation
R
,
the type of additional data
D
>
R

Returns:

the value returned from the visitor method
accept
(DocTreeVisitor<R, D>
the visitor to be called
visitor
,
D
a parameter value to be passed to the visitor method
data
)

Accept method used to implement the visitor pattern.

public DocTree.Kind

Returns:

the kind of this tree
getKind
()

Returns the kind of this tree.

Method Detail

acceptback to summary
public <R, D> R accept(DocTreeVisitor<R, D> visitor, D data)

Accept method used to implement the visitor pattern. The visitor pattern is used to implement operations on trees.

Parameters
<R>
the result type of this operation
<D>
the type of additional data
visitor:DocTreeVisitor<R, D>

the visitor to be called

data:D

a parameter value to be passed to the visitor method

Returns:R

the value returned from the visitor method

getKindback to summary
public DocTree.Kind getKind()

Returns the kind of this tree.

Returns:DocTree.Kind

the kind of this tree

com.sun.source.doctree back to summary

public final Enum DocTree.Kind

extends Enum<DocTree.Kind>
Class Inheritance

Enumerates all kinds of trees.

Field Summary

Modifier and TypeField and Description
public static final DocTree.Kind
ATTRIBUTE

Used for instances of AttributeTree representing an attribute in an HTML element or tag.

public static final DocTree.Kind
AUTHOR

Used for instances of AuthorTree representing an @author tag.

public static final DocTree.Kind
CODE

Used for instances of LiteralTree representing an @code tag.

public static final DocTree.Kind
COMMENT

Used for instances of CommentTree representing an HTML comment.

public static final DocTree.Kind
DEPRECATED

Used for instances of DeprecatedTree representing an @deprecated tag.

public static final DocTree.Kind
DOC_COMMENT

Used for instances of DocCommentTree representing a complete doc comment.

public static final DocTree.Kind
DOC_ROOT

Used for instances of DocRootTree representing an @docRoot tag.

public static final DocTree.Kind
DOC_TYPE

Used for instances of DocTypeTree representing an HTML DocType declaration.

public static final DocTree.Kind
END_ELEMENT

Used for instances of EndElementTree representing the end of an HTML element.

public static final DocTree.Kind
ENTITY

Used for instances of EntityTree representing an HTML entity.

public static final DocTree.Kind
ERRONEOUS

Used for instances of ErroneousTree representing some invalid text.

public static final DocTree.Kind
ESCAPE

Used for instances of EscapeTree representing some escaped documentation text.

public static final DocTree.Kind
EXCEPTION

Used for instances of ThrowsTree representing an @exception tag.

public static final DocTree.Kind
HIDDEN

Used for instances of HiddenTree representing an @hidden tag.

public static final DocTree.Kind
IDENTIFIER

Used for instances of IdentifierTree representing an identifier.

public static final DocTree.Kind
INDEX

Used for instances of IndexTree representing an @index tag.

public static final DocTree.Kind
INHERIT_DOC

Used for instances of InheritDocTree representing an @inheritDoc tag.

public static final DocTree.Kind
LINK

Used for instances of LinkTree representing an @link tag.

public static final DocTree.Kind
LITERAL

Used for instances of LiteralTree representing an @literal tag.

public static final DocTree.Kind
MARKDOWN

Used for instances of RawTextTree representing a fragment of Markdown content.

public static final DocTree.Kind
OTHER

An implementation-reserved node.

public static final DocTree.Kind
PARAM

Used for instances of ParamTree representing an @param tag.

public static final DocTree.Kind
PROVIDES

Used for instances of ProvidesTree representing an @provides tag.

public static final DocTree.Kind
REFERENCE

Used for instances of ReferenceTree representing a reference to an element in the Java programming language.

public static final DocTree.Kind
RETURN

Used for instances of ReturnTree representing an @return tag.

public static final DocTree.Kind
SEE

Used for instances of SeeTree representing an @see tag.

public static final DocTree.Kind
SERIAL

Used for instances of SerialTree representing an @serial tag.

public static final DocTree.Kind
SERIAL_DATA

Used for instances of SerialDataTree representing an @serialData tag.

public static final DocTree.Kind
SERIAL_FIELD

Used for instances of SerialFieldTree representing an @serialField tag.

public static final DocTree.Kind
SINCE

Used for instances of SinceTree representing an @since tag.

public static final DocTree.Kind
SNIPPET

Used for instances of SnippetTree representing an @snippet tag.

public static final DocTree.Kind
SPEC

Used for instances of SpecTree representing an @spec tag.

public static final DocTree.Kind
START_ELEMENT

Used for instances of StartElementTree representing the start of an HTML element.

public static final DocTree.Kind
SUMMARY

Used for instances of SummaryTree representing an @summary tag.

public static final DocTree.Kind
SYSTEM_PROPERTY

Used for instances of SystemPropertyTree representing an @systemProperty tag.

public final String
tagName

The name of the tag, if any, associated with this kind of node.

public static final DocTree.Kind
TEXT

Used for instances of TextTree representing some plain documentation text.

public static final DocTree.Kind
THROWS

Used for instances of ThrowsTree representing an @throws tag.

public static final DocTree.Kind
UNKNOWN_BLOCK_TAG

Used for instances of UnknownBlockTagTree representing an unknown block tag.

public static final DocTree.Kind
UNKNOWN_INLINE_TAG

Used for instances of UnknownInlineTagTree representing an unknown inline tag.

public static final DocTree.Kind
USES

Used for instances of UsesTree representing an @uses tag.

public static final DocTree.Kind
VALUE

Used for instances of ValueTree representing an @value tag.

public static final DocTree.Kind
VERSION

Used for instances of VersionTree representing an @version tag.

Constructor Summary

AccessConstructor and Description
private
Kind()

private
Kind(String tagName)

Method Summary

Modifier and TypeMethod and Description
public static DocTree.Kind
public static DocTree.Kind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ATTRIBUTEback to summary
public static final DocTree.Kind ATTRIBUTE

Used for instances of AttributeTree representing an attribute in an HTML element or tag.

AUTHORback to summary
public static final DocTree.Kind AUTHOR

Used for instances of AuthorTree representing an @author tag.

CODEback to summary
public static final DocTree.Kind CODE

Used for instances of LiteralTree representing an @code tag.

COMMENTback to summary
public static final DocTree.Kind COMMENT

Used for instances of CommentTree representing an HTML comment.

DEPRECATEDback to summary
public static final DocTree.Kind DEPRECATED

Used for instances of DeprecatedTree representing an @deprecated tag.

DOC_COMMENTback to summary
public static final DocTree.Kind DOC_COMMENT

Used for instances of DocCommentTree representing a complete doc comment.

DOC_ROOTback to summary
public static final DocTree.Kind DOC_ROOT

Used for instances of DocRootTree representing an @docRoot tag.

DOC_TYPEback to summary
public static final DocTree.Kind DOC_TYPE

Used for instances of DocTypeTree representing an HTML DocType declaration.

Since
10
END_ELEMENTback to summary
public static final DocTree.Kind END_ELEMENT

Used for instances of EndElementTree representing the end of an HTML element.

ENTITYback to summary
public static final DocTree.Kind ENTITY

Used for instances of EntityTree representing an HTML entity.

ERRONEOUSback to summary
public static final DocTree.Kind ERRONEOUS

Used for instances of ErroneousTree representing some invalid text.

ESCAPEback to summary
public static final DocTree.Kind ESCAPE

Used for instances of EscapeTree representing some escaped documentation text.

Since
21
EXCEPTIONback to summary
public static final DocTree.Kind EXCEPTION

Used for instances of ThrowsTree representing an @exception tag.

HIDDENback to summary
public static final DocTree.Kind HIDDEN

Used for instances of HiddenTree representing an @hidden tag.

IDENTIFIERback to summary
public static final DocTree.Kind IDENTIFIER

Used for instances of IdentifierTree representing an identifier.

INDEXback to summary
public static final DocTree.Kind INDEX

Used for instances of IndexTree representing an @index tag.

Since
9
INHERIT_DOCback to summary
public static final DocTree.Kind INHERIT_DOC

Used for instances of InheritDocTree representing an @inheritDoc tag.

LITERALback to summary
public static final DocTree.Kind LITERAL

Used for instances of LiteralTree representing an @literal tag.

MARKDOWNback to summary
public static final DocTree.Kind MARKDOWN

Used for instances of RawTextTree representing a fragment of Markdown content.

Since
23
OTHERback to summary
public static final DocTree.Kind OTHER

An implementation-reserved node. This is not the node you are looking for.

PARAMback to summary
public static final DocTree.Kind PARAM

Used for instances of ParamTree representing an @param tag.

PROVIDESback to summary
public static final DocTree.Kind PROVIDES

Used for instances of ProvidesTree representing an @provides tag.

Since
9
REFERENCEback to summary
public static final DocTree.Kind REFERENCE

Used for instances of ReferenceTree representing a reference to an element in the Java programming language.

RETURNback to summary
public static final DocTree.Kind RETURN

Used for instances of ReturnTree representing an @return tag.

SEEback to summary
public static final DocTree.Kind SEE

Used for instances of SeeTree representing an @see tag.

SERIALback to summary
public static final DocTree.Kind SERIAL

Used for instances of SerialTree representing an @serial tag.

SERIAL_DATAback to summary
public static final DocTree.Kind SERIAL_DATA

Used for instances of SerialDataTree representing an @serialData tag.

SERIAL_FIELDback to summary
public static final DocTree.Kind SERIAL_FIELD

Used for instances of SerialFieldTree representing an @serialField tag.

SINCEback to summary
public static final DocTree.Kind SINCE

Used for instances of SinceTree representing an @since tag.

SNIPPETback to summary
public static final DocTree.Kind SNIPPET

Used for instances of SnippetTree representing an @snippet tag.

Since
18
SPECback to summary
public static final DocTree.Kind SPEC

Used for instances of SpecTree representing an @spec tag.

Since
20
START_ELEMENTback to summary
public static final DocTree.Kind START_ELEMENT

Used for instances of StartElementTree representing the start of an HTML element.

SUMMARYback to summary
public static final DocTree.Kind SUMMARY

Used for instances of SummaryTree representing an @summary tag.

Since
10
SYSTEM_PROPERTYback to summary
public static final DocTree.Kind SYSTEM_PROPERTY

Used for instances of SystemPropertyTree representing an @systemProperty tag.

Since
12
tagNameback to summary
public final String tagName

The name of the tag, if any, associated with this kind of node.

TEXTback to summary
public static final DocTree.Kind TEXT

Used for instances of TextTree representing some plain documentation text.

THROWSback to summary
public static final DocTree.Kind THROWS

Used for instances of ThrowsTree representing an @throws tag.

UNKNOWN_BLOCK_TAGback to summary
public static final DocTree.Kind UNKNOWN_BLOCK_TAG

Used for instances of UnknownBlockTagTree representing an unknown block tag.

UNKNOWN_INLINE_TAGback to summary
public static final DocTree.Kind UNKNOWN_INLINE_TAG

Used for instances of UnknownInlineTagTree representing an unknown inline tag.

USESback to summary
public static final DocTree.Kind USES

Used for instances of UsesTree representing an @uses tag.

Since
9
VALUEback to summary
public static final DocTree.Kind VALUE

Used for instances of ValueTree representing an @value tag.

VERSIONback to summary
public static final DocTree.Kind VERSION

Used for instances of VersionTree representing an @version tag.

Constructor Detail

Kindback to summary
private Kind()
Kindback to summary
private Kind(String tagName)

Method Detail

valueOfback to summary
public static DocTree.Kind valueOf(String name)
valuesback to summary
public static DocTree.Kind[] values()