模块 jdk.compiler

接口 CommentTree

所有父级接口:
DocTree

public interface CommentTree extends DocTree
嵌入的 HTML 注释。
  <!-- text -->
 
自从:
1.8
  • 内部类总结

    在接口 com.sun.source.doctree.DocTree 中声明的嵌套类/接口

    DocTree.Kind
  • 方法总结

    修饰符和类型
    方法
    描述
    返回评论的文本。

    在接口 com.sun.source.doctree.DocTree 中声明的方法

    accept, getKind
  • 方法详情

    • getBody

      String  getBody()
      返回评论的文本。
      返回:
      评论文字