This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Method and Description |
|---|---|
| public Tokens. | getComment(JCTree tree)
Returns the Comment token containing the doc comment, if any, for a tree node. |
| public Elements. | |
| public String | |
| public DocCommentTree | |
| public boolean | |
| public void |
| getComment | back to summary |
|---|---|
| public Tokens. Returns the Comment token containing the doc comment, if any, for a tree node. | |
| getCommentKind | back to summary |
|---|---|
| public Elements. Returns the kind of the doc comment, if any, for a tree node. | |
| getCommentText | back to summary |
|---|---|
| public String getCommentText(JCTree tree) Returns the plain text of the doc comment, if any, for a tree node. | |
| getCommentTree | back to summary |
|---|---|
| public DocCommentTree getCommentTree(JCTree tree) Returns the parsed form of the doc comment as a DocTree. If any errors
are detected during parsing, they will be reported via
| |
| hasComment | back to summary |
|---|---|
| public boolean hasComment(JCTree tree) Checks if a tree node has a corresponding doc comment. | |
| putComment | back to summary |
|---|---|
| public void putComment(JCTree tree, Tokens. Sets the Comment to be associated with a tree node. | |