public class LazyDocCommentTable extends Object implements DocCommentTable
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 |
|---|---|
Tokens.Comment |
getComment(JCTree tree)
Get the Comment token containing the doc comment, if any, for a tree node.
|
String |
getCommentText(JCTree tree)
Get the plain text of the doc comment, if any, for a tree node.
|
DCTree.DCDocComment |
getCommentTree(JCTree tree)
Get the parsed form of the doc comment as a DocTree.
|
boolean |
hasComment(JCTree tree)
Check if a tree node has a corresponding doc comment.
|
void |
putComment(JCTree tree,
Tokens.Comment c)
Set the Comment to be associated with a tree node.
|
public boolean hasComment(JCTree tree)
DocCommentTablehasComment in interface DocCommentTablepublic Tokens.Comment getComment(JCTree tree)
DocCommentTablegetComment in interface DocCommentTablepublic String getCommentText(JCTree tree)
DocCommentTablegetCommentText in interface DocCommentTablepublic DCTree.DCDocComment getCommentTree(JCTree tree)
DocCommentTableErroneousTree nodes within the resulting tree.getCommentTree in interface DocCommentTablepublic void putComment(JCTree tree, Tokens.Comment c)
DocCommentTableputComment in interface DocCommentTableCopyright © 2017 earcam. All rights reserved.