Interface JHtmlComment
- All Superinterfaces:
JComment
- All Known Subinterfaces:
JDocComment, JHtmlTag
- All Known Implementing Classes:
AbstractJDocComment, AbstractJHtmlComment, DocTagJHtmlComment, ImplJDocComment, ImplJHtmlTag, NestedDocCommentContent, NestedHtmlCommentContent
A comment that supports HTML content.
-
Method Summary
Modifier and TypeMethodDescriptionblock()Add a comment sub-block at this location.br()Add a line separator.docRoot()Add the{@docRoot}tag at this position.Add an HTML link (<a>tag).Add an HTML tag.inlineDocTag(String tag, String body) Add an inline doc tag with simple content.nl()Add a newline.p()Add a paragraph separator.Add an inline@codetag within a<pre></pre>block.sp()Add a non-trailing space.Add some text to the end of this comment.Add a type name to the end of this comment.Add a@valueinline tag.Methods inherited from interface JComment
code, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType
-
Method Details
-
block
JHtmlComment block()Add a comment sub-block at this location. The block has no visual representation but allows text to be inserted at the point of the block even after more content was appended after it. -
text
Add some text to the end of this comment. No formatting or line breaks are inserted. -
inlineDocTag
Add an inline doc tag with simple content.- Specified by:
inlineDocTagin interfaceJComment- Parameters:
tag- the tag name (without the leading@sign)body- the complete tag body- Returns:
- this comment
-
sp
JHtmlComment sp()Add a non-trailing space. If no content follows, the space will be omitted. -
nl
-
typeName
Add a type name to the end of this comment. If the type is imported, it will emit as a simple name, otherwise it will emit as a qualified name. -
docRoot
JHtmlComment docRoot()Add the{@docRoot}tag at this position. -
p
-
br
-
value
Add a@valueinline tag.- Parameters:
type- the value typefieldName- the value field name- Returns:
- this HTML comment
-
htmlLink
-
htmlTag
-
preformattedCode
JComment preformattedCode()Add an inline@codetag within a<pre></pre>block.- Returns:
- the preformatted code block content
-