Class JDocComment
- All Implemented Interfaces:
JGenerable, Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess, SequencedCollection<Object>
JavaDoc comment.
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JCommentPartThe @deprecated tagprivate final Map<String, JCommentPart> list of @param tagsprivate JCommentPartThe @return tag part.private final Map<JClass, JCommentPart> list of @throws tagslist of xdocletsprivate static final Stringprivate final JCodeModelprivate static final longFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd an @deprecated tag to the javadoc, with the associated message.Append a text to an @param tag.Append a text to a @param tag to the javadocAppends a text to @return tag.add an @throws tag to the javadocadd an @throws tag to the javadocaddXdoclet(String name) add an xdoclet.addXdoclet(String name, String attribute, String value) add an xdoclet.addXdoclet(String name, Map<String, String> attributes) add an xdoclet.Appends a new value.voidMethods inherited from class JCommentPart
add, formatMethods 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:
-
atParams
list of @param tags -
atXdoclets
-
atThrows
list of @throws tags -
atReturn
The @return tag part. -
atDeprecated
The @deprecated tag -
owner
-
INDENT
- See Also:
-
-
Constructor Details
-
JDocComment
-
-
Method Details
-
append
Description copied from class:JCommentPartAppends a new value. If the value isJTypeit will be printed as a @link tag. Otherwise it will be converted to String viaObject.toString().- Overrides:
appendin classJCommentPart
-
addParam
Append a text to a @param tag to the javadoc -
addParam
Append a text to an @param tag. -
addThrows
add an @throws tag to the javadoc -
addThrows
add an @throws tag to the javadoc -
addReturn
Appends a text to @return tag. -
addDeprecated
add an @deprecated tag to the javadoc, with the associated message. -
addXdoclet
-
addXdoclet
-
addXdoclet
-
generate
- Specified by:
generatein interfaceJGenerable
-