OpenJDK 27
jdk.compiler
com.sun.source.doctree
CommentTree
APIdia Launch Partner
Top
Description
Methods
com.sun.source.doctree
public
Interface CommentTree
extends
DocTree
Known Direct Implementers
com.
sun.
tools.
javac.
tree.
DCTree.
DCComment
An embedded HTML comment.
<!-- text -->
Since
1.8
Method Summary
Modifier and Type
Method and Description
public
String
Returns:
the comment text
getBody
()
Returns the text of the comment.
Inherited from
com.sun.source.doctree.DocTree
:
accept
getKind
Method Detail
getBody
back to summary
public
String
getBody
()
Returns the text of the comment.
Returns:
String
the comment text