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 | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DiagnosticSource | |
| private final ParserFactory | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Tokens. | getComment(JCTree tree)
Implements com. Returns the Comment token containing the doc comment, if any, for a tree node. |
| public Elements. | getCommentKind(JCTree tree)
Implements com. Returns the kind of the doc comment, if any, for a tree node. |
| public String | getCommentText(JCTree tree)
Implements com. Returns the plain text of the doc comment, if any, for a tree node. |
| public DocCommentTree | getCommentTree(JCTree tree)
Implements com. Returns the parsed form of the doc comment as a DocTree. |
| public boolean | hasComment(JCTree tree)
Implements com. Checks if a tree node has a corresponding doc comment. |
| public void | putComment(JCTree tree, Tokens.
Implements com. Sets the Comment to be associated with a tree node. |
| diagSource | back to summary |
|---|---|
| private final DiagnosticSource diagSource | |
| fac | back to summary |
|---|---|
| private final ParserFactory fac | |
| table | back to summary |
|---|---|
| private final Map<JCTree, LazyDocCommentTable. | |
| LazyDocCommentTable | back to summary |
|---|---|
| pack-priv LazyDocCommentTable(ParserFactory fac) | |
| getComment | back to summary |
|---|---|
| public Tokens. Implements com. Doc from com. Returns the Comment token containing the doc comment, if any, for a tree node.
| |
| getCommentKind | back to summary |
|---|---|
| public Elements. Implements com. Doc from com. Returns the kind of the doc comment, if any, for a tree node.
| |
| getCommentText | back to summary |
|---|---|
| public String getCommentText(JCTree tree) Implements com. Doc from com. Returns the plain text of the doc comment, if any, for a tree node.
| |
| getCommentTree | back to summary |
|---|---|
| public DocCommentTree getCommentTree(JCTree tree) Implements com. Doc from com. 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) Implements com. Doc from com. Checks if a tree node has a corresponding doc comment.
| |
| putComment | back to summary |
|---|---|
| public void putComment(JCTree tree, Tokens. Implements com. Doc from com. Sets the Comment to be associated with a tree node.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Tokens. | |
| pack-priv DocCommentTree |
| comment | back to summary |
|---|---|
| pack-priv final Tokens. | |
| tree | back to summary |
|---|---|
| pack-priv DocCommentTree tree | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(Tokens. | |