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 } |