public interface JDocComment extends JHtmlComment
| 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.
|
JComment |
inlineDocTag(java.lang.String tag)
Add an inline doc tag.
|
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. |
htmlLink, htmlTag, preformattedCodecode, linkConstructor, linkField, linkMethod, linkMethod, linkTypeJDocComment text(java.lang.String text)
text in interface JCommenttext in interface JHtmlCommenttext - the text to addJDocComment block()
block in interface JCommentblock in interface JHtmlCommentJDocComment inlineDocTag(java.lang.String tag, java.lang.String body)
inlineDocTag in interface JCommentinlineDocTag in interface JHtmlCommenttag - the tag name (without the leading @ sign)body - the complete tag bodyJComment inlineDocTag(java.lang.String tag)
inlineDocTag in interface JCommenttag - the tag name (without the leading @ sign)JDocComment sp()
sp in interface JCommentsp in interface JHtmlCommentJDocComment nl()
nl in interface JCommentnl in interface JHtmlCommentJDocComment p()
p in interface JHtmlCommentJDocComment br()
br in interface JHtmlCommentJDocComment typeName(JType type)
typeName in interface JCommenttypeName in interface JHtmlCommenttype - the type name to addJDocComment docRoot()
{@docRoot} tag at this position.docRoot in interface JCommentdocRoot in interface JHtmlCommentJDocComment value(JType type, java.lang.String fieldName)
@value inline tag.value in interface JHtmlCommenttype - the value typefieldName - the value field nameJHtmlComment docTag(java.lang.String tag)
tag - the tag nameJHtmlComment docTag(java.lang.String tag, java.lang.String firstWord)
tag - the tag namefirstWord - the tag body first wordJHtmlComment _return()
@return tag.JHtmlComment _throws(JType exceptionType)
@throws tag.exceptionType - the type of exceptionJHtmlComment param(java.lang.String name)
@param tag.name - the parameter name