abstract class AbstractJHtmlComment extends AbstractJComment implements JHtmlComment
CLOSE_PAREN_CONTENT, COMMA_CONTENT, DOC_ROOT_CONTENT, HASH_CONTENT, NL_CONTENT, OPEN_PAREN_CONTENT| Constructor and Description |
|---|
AbstractJHtmlComment() |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends HtmlCommentContent> |
add(T item) |
JHtmlComment |
block()
Add a comment sub-block at this location.
|
JHtmlComment |
br()
Add a line separator.
|
JHtmlComment |
docRoot()
Add the
{@docRoot} tag at this position. |
JHtmlTag |
htmlLink(java.lang.String url)
Add an HTML link (
<a> tag). |
JHtmlTag |
htmlTag(java.lang.String tag,
boolean newLine)
Add an HTML tag.
|
JHtmlComment |
inlineDocTag(java.lang.String tag,
java.lang.String body)
Add an inline doc tag with simple content.
|
JHtmlComment |
nl()
Add a newline.
|
JHtmlComment |
p()
Add a paragraph separator.
|
JComment |
preformattedCode()
Add an inline
@code tag within a {@code |
JHtmlComment |
sp()
Add a non-trailing space.
|
JHtmlComment |
text(java.lang.String text)
Add some text to the end of this comment.
|
JHtmlComment |
typeName(JType type)
Add a type name to the end of this comment.
|
JHtmlComment |
value(JType type,
java.lang.String fieldName)
Add a
@value inline tag. |
add, addItemDirectly, code, getContent, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcode, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkTypeprotected <T extends HtmlCommentContent> T add(T item)
public JHtmlComment block()
JCommentblock in interface JCommentblock in interface JHtmlCommentblock in class AbstractJCommentpublic JHtmlComment sp()
JCommentsp in interface JCommentsp in interface JHtmlCommentsp in class AbstractJCommentpublic JHtmlComment nl()
JCommentnl in interface JCommentnl in interface JHtmlCommentnl in class AbstractJCommentpublic JHtmlComment typeName(JType type)
JCommenttypeName in interface JCommenttypeName in interface JHtmlCommenttypeName in class AbstractJCommenttype - the type name to addpublic JHtmlComment text(java.lang.String text)
JCommenttext in interface JCommenttext in interface JHtmlCommenttext in class AbstractJCommenttext - the text to addpublic JHtmlComment inlineDocTag(java.lang.String tag, java.lang.String body)
JCommentinlineDocTag in interface JCommentinlineDocTag in interface JHtmlCommentinlineDocTag in class AbstractJCommenttag - the tag name (without the leading @ sign)body - the complete tag bodypublic JHtmlComment docRoot()
JComment{@docRoot} tag at this position.docRoot in interface JCommentdocRoot in interface JHtmlCommentdocRoot in class AbstractJCommentpublic JHtmlComment p()
JHtmlCommentp in interface JHtmlCommentpublic JHtmlComment br()
JHtmlCommentbr in interface JHtmlCommentpublic JHtmlComment value(JType type, java.lang.String fieldName)
JHtmlComment@value inline tag.value in interface JHtmlCommenttype - the value typefieldName - the value field namepublic JHtmlTag htmlLink(java.lang.String url)
JHtmlComment<a> tag).htmlLink in interface JHtmlCommenturl - the URL to link topublic JHtmlTag htmlTag(java.lang.String tag, boolean newLine)
JHtmlCommenthtmlTag in interface JHtmlCommenttag - the HTML tagnewLine - true to add a newline after the opening tag and before the closing tagpublic JComment preformattedCode()
JHtmlComment@code tag within a <pre></pre> block.preformattedCode in interface JHtmlComment