A javadoc comment consists of multiple parts. There's the main part (that comes the first in in the comment section), then the parameter parts (@param), the return part (@return), and the throws parts (@throws).
Todo
it would be nice if we have JComment class and we can derive this class from there.
| Modifier and Type | Field and Description |
|---|---|
| private JCommentPart | atDeprecated
The @deprecated tag |
| private final transient Map | atParams
list of @param tags |
| private JCommentPart | atReturn
The @return tag part. |
| private final transient Map | atThrows
list of @throws tags |
| private final transient Map | atXdoclets
list of xdoclets |
| private static final String | |
| private final transient JCodeModel | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JCommentPart | |
| public JCommentPart | |
| public JCommentPart | |
| public JCommentPart | |
| public JCommentPart | |
| public JCommentPart | |
| public Map | |
| public Map | |
| public Map | |
| public JDocComment | |
| public JDocComment | appendXML(String s)
Overrides com. Appends a new value with escaped XML. |
| public void |
| atDeprecated | back to summary |
|---|---|
| private JCommentPart atDeprecated The @deprecated tag | |
| atParams | back to summary |
|---|---|
| private final transient Map<String, JCommentPart> atParams list of @param tags | |
| atReturn | back to summary |
|---|---|
| private JCommentPart atReturn The @return tag part. | |
| atThrows | back to summary |
|---|---|
| private final transient Map<JClass, JCommentPart> atThrows list of @throws tags | |
| atXdoclets | back to summary |
|---|---|
| private final transient Map<String, Map<String, String>> atXdoclets list of xdoclets | |
| INDENT | back to summary |
|---|---|
| private static final String INDENT | |
| owner | back to summary |
|---|---|
| private final transient JCodeModel owner | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| JDocComment | back to summary |
|---|---|
| public JDocComment(JCodeModel owner) | |
| addDeprecated | back to summary |
|---|---|
| public JCommentPart addDeprecated() add an @deprecated tag to the javadoc, with the associated message. | |
| addParam | back to summary |
|---|---|
| public JCommentPart addParam(String param) Append a text to a @param tag to the javadoc | |
| addParam | back to summary |
|---|---|
| public JCommentPart addParam(JVar param) Append a text to an @param tag. | |
| addReturn | back to summary |
|---|---|
| public JCommentPart addReturn() Appends a text to @return tag. | |
| addThrows | back to summary |
|---|---|
| public JCommentPart addThrows(Class<? extends Throwable> exception) add an @throws tag to the javadoc | |
| addThrows | back to summary |
|---|---|
| public JCommentPart addThrows(JClass exception) add an @throws tag to the javadoc | |
| addXdoclet | back to summary |
|---|---|
| public Map add an xdoclet. | |
| addXdoclet | back to summary |
|---|---|
| public Map add an xdoclet. | |
| addXdoclet | back to summary |
|---|---|
| public Map add an xdoclet. | |
| append | back to summary |
|---|---|
| public JDocComment append(Object o) Overrides com. Doc from com. Appends a new value.
If the value is
| |
| appendXML | back to summary |
|---|---|
| public JDocComment appendXML(String s) Overrides com. Doc from com. Appends a new value with escaped XML.
If the value is
| |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |