- Enclosing interface:
JavadocTree
public static sealed interface JavadocTree.Document
Root node.
-
Method Summary
Modifier and TypeMethodDescriptionGet the block tags of a documentation comment.body()Get the body of a documentation comment, appearing after the first sentence, and before any block tags.Get the first sentence of a documentation comment.default List<JavadocTree> fullBody()Get the full body.
-
Method Details
-
firstSentence
List<JavadocTree> firstSentence()Get the first sentence of a documentation comment.- Returns:
- list of nodes
-
body
List<JavadocTree> body()Get the body of a documentation comment, appearing after the first sentence, and before any block tags.- Returns:
- list of nodes
-
fullBody
Get the full body.- Returns:
- elements
-
blockTags
List<JavadocTree.BlockTag> blockTags()Get the block tags of a documentation comment.- Returns:
- list of block tag nodes
-