Package org.jboss.jdeparser
Interface JDocComment
-
- All Superinterfaces:
JComment,JHtmlComment
- All Known Implementing Classes:
AbstractJDocComment,ImplJDocComment,NestedDocCommentContent
public interface JDocComment extends JHtmlComment
A JavaDoc comment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JHtmlComment_return()Add a@returntag.JHtmlComment_throws(JType exceptionType)Add a@throwstag.JDocCommentblock()Add a comment sub-block at this location.JDocCommentbr()Add a line separator.JDocCommentdocRoot()Add the{@docRoot}tag at this position.JHtmlCommentdocTag(java.lang.String tag)Add a block tag.JHtmlCommentdocTag(java.lang.String tag, java.lang.String firstWord)Add a block tag.JCommentinlineDocTag(java.lang.String tag)Add an inline doc tag.JDocCommentinlineDocTag(java.lang.String tag, java.lang.String body)Add an inline doc tag with simple content.JDocCommentnl()Add a newline.JDocCommentp()Add a paragraph separator.JHtmlCommentparam(java.lang.String name)Add a@paramtag.JDocCommentsp()Add a non-trailing space.JDocCommenttext(java.lang.String text)Add some text to the end of this comment.JDocCommenttypeName(JType type)Add a type name to the end of this comment.JDocCommentvalue(JType type, java.lang.String fieldName)Add a@valueinline tag.-
Methods inherited from interface org.jboss.jdeparser.JComment
code, linkConstructor, linkField, linkMethod, linkMethod, linkType
-
Methods inherited from interface org.jboss.jdeparser.JHtmlComment
htmlLink, htmlTag, preformattedCode
-
-
-
-
Method Detail
-
text
JDocComment text(java.lang.String text)
Add some text to the end of this comment. No formatting or line breaks are inserted.- Specified by:
textin interfaceJComment- Specified by:
textin interfaceJHtmlComment- Parameters:
text- the text to add- Returns:
- this comment
-
block
JDocComment 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.- Specified by:
blockin interfaceJComment- Specified by:
blockin interfaceJHtmlComment- Returns:
- the comment sub-block
-
inlineDocTag
JDocComment inlineDocTag(java.lang.String tag, java.lang.String body)
Add an inline doc tag with simple content.- Specified by:
inlineDocTagin interfaceJComment- Specified by:
inlineDocTagin interfaceJHtmlComment- Parameters:
tag- the tag name (without the leading@sign)body- the complete tag body- Returns:
- this comment
-
inlineDocTag
JComment inlineDocTag(java.lang.String tag)
Add an inline doc tag.- Specified by:
inlineDocTagin interfaceJComment- Parameters:
tag- the tag name (without the leading@sign)- Returns:
- the body of the doc tag
-
sp
JDocComment sp()
Add a non-trailing space. If no content follows, the space will be omitted.- Specified by:
spin interfaceJComment- Specified by:
spin interfaceJHtmlComment- Returns:
- this comment
-
nl
JDocComment nl()
Add a newline.- Specified by:
nlin interfaceJComment- Specified by:
nlin interfaceJHtmlComment- Returns:
- this comment
-
p
JDocComment p()
Add a paragraph separator.- Specified by:
pin interfaceJHtmlComment- Returns:
- this HTML comment
-
br
JDocComment br()
Add a line separator.- Specified by:
brin interfaceJHtmlComment- Returns:
- this HTML comment
-
typeName
JDocComment typeName(JType type)
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.- Specified by:
typeNamein interfaceJComment- Specified by:
typeNamein interfaceJHtmlComment- Parameters:
type- the type name to add- Returns:
- this comment
-
docRoot
JDocComment docRoot()
Add the{@docRoot}tag at this position.- Specified by:
docRootin interfaceJComment- Specified by:
docRootin interfaceJHtmlComment- Returns:
- this comment
-
value
JDocComment value(JType type, java.lang.String fieldName)
Add a@valueinline tag.- Specified by:
valuein interfaceJHtmlComment- Parameters:
type- the value typefieldName- the value field name- Returns:
- this HTML comment
-
docTag
JHtmlComment docTag(java.lang.String tag)
Add a block tag.- Parameters:
tag- the tag name- Returns:
- the block tag comment block
-
docTag
JHtmlComment docTag(java.lang.String tag, java.lang.String firstWord)
Add a block tag.- Parameters:
tag- the tag namefirstWord- the tag body first word- Returns:
- the block tag comment block
-
_return
JHtmlComment _return()
Add a@returntag.- Returns:
- the tag body
-
_throws
JHtmlComment _throws(JType exceptionType)
Add a@throwstag.- Parameters:
exceptionType- the type of exception- Returns:
- the tag body
-
param
JHtmlComment param(java.lang.String name)
Add a@paramtag.- Parameters:
name- the parameter name- Returns:
- the tag body
-
-