JavaScript is disabled on your browser.
This specification is not final and is subject to change. Use is subject to
license terms
.
Skip navigation links
Overview
Class
Use
Tree
Preview
New
Deprecated
Index
Search
Help
Java SE 25 & JDK 25
DRAFT 25-internal+20-suse-6.5-x8664
jdk.compiler
com.sun.source.doctree
CommentTree
Contents
Description
Nested Class Summary
Method Summary
Method Details
getBody()
Hide sidebar
Show sidebar
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
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
String
getBody
()
Returns the text of the comment.
Methods declared in interface
DocTree
accept
,
getKind
Method Details
getBody
String
getBody
()
Returns the text of the comment.
Returns:
the comment text