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)
DocCommentTable
hasComment
in interface DocCommentTable
public Tokens.Comment getComment(JCTree tree)
DocCommentTable
getComment
in interface DocCommentTable
public String getCommentText(JCTree tree)
DocCommentTable
getCommentText
in interface DocCommentTable
public DCTree.DCDocComment getCommentTree(JCTree tree)
DocCommentTable
ErroneousTree
nodes within the resulting tree.getCommentTree
in interface DocCommentTable
public void putComment(JCTree tree, Tokens.Comment c)
DocCommentTable
putComment
in interface DocCommentTable
Copyright © 2017 earcam. All rights reserved.