public class JCommentPart extends ArrayList<Object>
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 AbstractJType (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.
modCount| Constructor and Description |
|---|
JCommentPart() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object aValue) |
JCommentPart |
append(Object aValue)
Appends a new value.
|
protected void |
format(IJFormatter f,
String sIndent)
Writes this part into the formatter by using the specified indentation.
|
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, stream@Nonnull public JCommentPart append(@Nullable Object aValue)
aValue - If the value is AbstractJType it will be printed as a @link
tag. Otherwise it will be converted to String via
Object.toString().protected void format(@Nonnull IJFormatter f, String sIndent)
f - Formatter to usesIndent - Indentation to useCopyright © 2013–2018 Philip Helger. All rights reserved.