Class JCommentPart
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess, SequencedCollection<Object>
- Direct Known Subclasses:
JDocComment
A part is a part of a javadoc comment, and it is a list of values.
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.
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAppends a new value.private StringEscapes the appearance of the comment terminator.private voidflattenAppend(Object value) protected voidformat(JFormatter f, String indent) Writes this part into the formatter by using the specified indentation.Methods inherited from class ArrayList
add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
JCommentPart
public JCommentPart()
-
-
Method Details
-
append
Appends a new value. If the value isJTypeit will be printed as a @link tag. Otherwise it will be converted to String viaObject.toString(). -
add
-
flattenAppend
-
format
Writes this part into the formatter by using the specified indentation. -
escape
-