src/share/classes/com/sun/tools/javac/tree/DocCommentTable.java

changeset 1409
33abf479f202
parent 1280
5c0b3faeb0b0
child 2525
2eb010b6cb22
equal deleted inserted replaced
1408:b486794d160d 1409:33abf479f202
22 * or visit www.oracle.com if you need additional information or have any 22 * or visit www.oracle.com if you need additional information or have any
23 * questions. 23 * questions.
24 */ 24 */
25 package com.sun.tools.javac.tree; 25 package com.sun.tools.javac.tree;
26 26
27 import com.sun.source.doctree.ErroneousTree;
27 import com.sun.tools.javac.parser.Tokens.Comment; 28 import com.sun.tools.javac.parser.Tokens.Comment;
29 import com.sun.tools.javac.tree.DCTree.DCDocComment;
28 30
29 /** 31 /**
30 * A table giving the doc comment, if any, for any tree node. 32 * A table giving the doc comment, if any, for any tree node.
31 * 33 *
32 * <p><b>This is NOT part of any supported API. 34 * <p><b>This is NOT part of any supported API.
49 * Get the plain text of the doc comment, if any, for a tree node. 51 * Get the plain text of the doc comment, if any, for a tree node.
50 */ 52 */
51 public String getCommentText(JCTree tree); 53 public String getCommentText(JCTree tree);
52 54
53 /** 55 /**
56 * Get the parsed form of the doc comment as a DocTree. If any errors
57 * are detected during parsing, they will be reported via
58 * {@link ErroneousTree ErroneousTree} nodes within the resulting tree.
59 */
60 public DCDocComment getCommentTree(JCTree tree);
61
62 /**
54 * Set the Comment to be associated with a tree node. 63 * Set the Comment to be associated with a tree node.
55 */ 64 */
56 public void putComment(JCTree tree, Comment c); 65 public void putComment(JCTree tree, Comment c);
57 } 66 }

mercurial