A part can contain a free-form text. This text is modeled as a collection of 'values'
in this class. A value can be a JType (which will be prinited with a @link tag),
anything that can be turned into a String via the Object#toString() method,
or a Collection/array of those objects.
Values can be added through the various append methods one by one or in a bulk.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object o)
Overrides java. Implements java. Appends the specified element to the end of this list. |
| public JCommentPart | |
| public JCommentPart | |
| private String | |
| private void | |
| protected void | format(JFormatter f, String indent)
Writes this part into the formatter by using the specified indentation. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| JCommentPart | back to summary |
|---|---|
| protected JCommentPart() | |
| add | back to summary |
|---|---|
| public boolean add(Object o) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| append | back to summary |
|---|---|
| public JCommentPart append(Object o) Appends a new value.
If the value is | |
| appendXML | back to summary |
|---|---|
| public JCommentPart appendXML(String s) Appends a new value with escaped XML.
If the value is | |
| escape | back to summary |
|---|---|
| private String escape(String s) Escapes the appearance of the comment terminator. | |
| flattenAppend | back to summary |
|---|---|
| private void flattenAppend(Object value) | |
| format | back to summary |
|---|---|
| protected void format(JFormatter f, String indent) Writes this part into the formatter by using the specified indentation. | |