Interface CommentTree

All Superinterfaces:
DocTree

public interface CommentTree extends DocTree
An embedded HTML comment.
   <!-- text -->
Since:
1.8
  • Nested Class Summary

    Nested classes/interfaces declared in interface DocTree

    DocTree.Kind
    Modifier and Type
    Interface
    Description
    static enum 
    Enumerates all kinds of trees.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the text of the comment.

    Methods declared in interface DocTree

    accept, getKind
    Modifier and Type
    Method
    Description
    <R,D> R
    accept(DocTreeVisitor<R,D> visitor, D data)
    Accept method used to implement the visitor pattern.
    Returns the kind of this tree.
  • Method Details

    • getBody

      String getBody()
      Returns the text of the comment.
      Returns:
      the comment text