CommentTree (Java SE 9 & JDK 9 )
Keywords: com.sun.source.doctree.CommentTree interface

Module jdk.compiler
Package com.sun.source.doctree

## Interface CommentTree

- All Superinterfaces:
    `DocTree`

      public interface CommentTree
      extends DocTree

  An embedded HTML comment.

  <!-- text -->

  Since:
    1.8

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.sun.source.doctree.DocTree

      `DocTree.Kind`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getBody​()` | Returns the text of the comment.

    - ### Methods inherited from interface com.sun.source.doctree.DocTree

      `accept, getKind`

- - ### Method Detail

    - #### getBody

          String getBody​()

      Returns the text of the comment.
      Returns:
        the comment text