Interface DocCommentTree
- All Superinterfaces:
DocTree
The top-level representation of a documentation comment.
first-sentence body block-tags
- Since:
- 1.8
-
Nested Class Summary
Nested classes/interfaces declared in interface com.sun.source.doctree.DocTree
DocTree.Kind
-
Method Summary
Modifier and TypeMethodDescriptionReturns the block tags for a documentation comment.getBody()
Returns the body of a documentation comment, appearing after the first sentence, and before any block tags.Returns the first sentence of a documentation comment.Returns the entire body of a documentation comment, appearing before any block tags, including the first sentence.Returns a list of trees containing the content (if any) following the content of the documentation comment.Returns a list of trees containing the content (if any) preceding the content of the documentation comment.
-
Method Details
-
getFirstSentence
-
getFullBody
-
getBody
-
getBlockTags
-
getPreamble
Returns a list of trees containing the content (if any) preceding the content of the documentation comment. When theDocCommentTree
has been read from a documentation comment in a Java source file, the list will be empty. When theDocCommentTree
has been read from an HTML file, this represents the content from the beginning of the file up to and including the<body>
tag.- Implementation Requirements:
- This implementation returns an empty list.
- Returns:
- the list of trees
- Since:
- 10
-
getPostamble
Returns a list of trees containing the content (if any) following the content of the documentation comment. When theDocCommentTree
has been read from a documentation comment in a Java source file, the list will be empty. WhenDocCommentTree
has been read from an HTML file, this represents the content from the</body>
tag to the end of file.- Implementation Requirements:
- This implementation returns an empty list.
- Returns:
- the list of trees
- Since:
- 10
-