abstract class AbstractJDocComment extends AbstractJHtmlComment implements JDocComment
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.util.List<DocTagJHtmlComment>> |
docTags |
CLOSE_PAREN_CONTENT, COMMA_CONTENT, DOC_ROOT_CONTENT, HASH_CONTENT, NL_CONTENT, OPEN_PAREN_CONTENT| Constructor and Description |
|---|
AbstractJDocComment() |
| Modifier and Type | Method and Description |
|---|---|
JHtmlComment |
_return()
Add a
@return tag. |
JHtmlComment |
_throws(JType exceptionType)
Add a
@throws tag. |
JDocComment |
block()
Add a comment sub-block at this location.
|
JDocComment |
br()
Add a line separator.
|
JDocComment |
docRoot()
Add the
{@docRoot} tag at this position. |
JHtmlComment |
docTag(java.lang.String tag)
Add a block tag.
|
JHtmlComment |
docTag(java.lang.String tag,
java.lang.String firstWord)
Add a block tag.
|
(package private) java.util.Map<java.lang.String,java.util.List<DocTagJHtmlComment>> |
getDocTags() |
JDocComment |
inlineDocTag(java.lang.String tag,
java.lang.String body)
Add an inline doc tag with simple content.
|
JDocComment |
nl()
Add a newline.
|
JDocComment |
p()
Add a paragraph separator.
|
JHtmlComment |
param(java.lang.String name)
Add a
@param tag. |
JDocComment |
sp()
Add a non-trailing space.
|
JDocComment |
text(java.lang.String text)
Add some text to the end of this comment.
|
JDocComment |
typeName(JType type)
Add a type name to the end of this comment.
|
JDocComment |
value(JType type,
java.lang.String fieldName)
Add a
@value inline tag. |
add, htmlLink, htmlTag, preformattedCodeadd, addItemDirectly, code, getContent, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinlineDocTaghtmlLink, htmlTag, preformattedCodecode, linkConstructor, linkField, linkMethod, linkMethod, linkTypeprivate java.util.Map<java.lang.String,java.util.List<DocTagJHtmlComment>> docTags
public JDocComment block()
JCommentblock in interface JCommentblock in interface JDocCommentblock in interface JHtmlCommentblock in class AbstractJHtmlCommentpublic JDocComment sp()
JCommentsp in interface JCommentsp in interface JDocCommentsp in interface JHtmlCommentsp in class AbstractJHtmlCommentpublic JDocComment nl()
JCommentnl in interface JCommentnl in interface JDocCommentnl in interface JHtmlCommentnl in class AbstractJHtmlCommentpublic JDocComment typeName(JType type)
JCommenttypeName in interface JCommenttypeName in interface JDocCommenttypeName in interface JHtmlCommenttypeName in class AbstractJHtmlCommenttype - the type name to addpublic JDocComment text(java.lang.String text)
JCommenttext in interface JCommenttext in interface JDocCommenttext in interface JHtmlCommenttext in class AbstractJHtmlCommenttext - the text to addpublic JDocComment inlineDocTag(java.lang.String tag, java.lang.String body)
JCommentinlineDocTag in interface JCommentinlineDocTag in interface JDocCommentinlineDocTag in interface JHtmlCommentinlineDocTag in class AbstractJHtmlCommenttag - the tag name (without the leading @ sign)body - the complete tag bodypublic JDocComment docRoot()
JComment{@docRoot} tag at this position.docRoot in interface JCommentdocRoot in interface JDocCommentdocRoot in interface JHtmlCommentdocRoot in class AbstractJHtmlCommentpublic JDocComment p()
JHtmlCommentp in interface JDocCommentp in interface JHtmlCommentp in class AbstractJHtmlCommentpublic JDocComment br()
JHtmlCommentbr in interface JDocCommentbr in interface JHtmlCommentbr in class AbstractJHtmlCommentpublic JDocComment value(JType type, java.lang.String fieldName)
JHtmlComment@value inline tag.value in interface JDocCommentvalue in interface JHtmlCommentvalue in class AbstractJHtmlCommenttype - the value typefieldName - the value field namepublic JHtmlComment docTag(java.lang.String tag)
JDocCommentdocTag in interface JDocCommenttag - the tag namepublic JHtmlComment docTag(java.lang.String tag, java.lang.String firstWord)
JDocCommentdocTag in interface JDocCommenttag - the tag namefirstWord - the tag body first wordpublic JHtmlComment _return()
JDocComment@return tag._return in interface JDocCommentpublic JHtmlComment _throws(JType exceptionType)
JDocComment@throws tag._throws in interface JDocCommentexceptionType - the type of exceptionpublic JHtmlComment param(java.lang.String name)
JDocComment@param tag.param in interface JDocCommentname - the parameter namejava.util.Map<java.lang.String,java.util.List<DocTagJHtmlComment>> getDocTags()