Package org.jboss.jdeparser
Class AbstractJDocComment
java.lang.Object
org.jboss.jdeparser.AbstractJComment
org.jboss.jdeparser.AbstractJHtmlComment
org.jboss.jdeparser.AbstractJDocComment
- All Implemented Interfaces:
JComment,JDocComment,JHtmlComment,Writable
- Direct Known Subclasses:
ImplJDocComment,NestedDocCommentContent
-
Field Summary
FieldsFields inherited from class org.jboss.jdeparser.AbstractJComment
CLOSE_PAREN_CONTENT, COMMA_CONTENT, DOC_ROOT_CONTENT, HASH_CONTENT, NL_CONTENT, OPEN_PAREN_CONTENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_return()Add a@returntag.Add a@throwstag.block()Add a comment sub-block at this location.br()Add a line separator.docRoot()Add the{@docRoot}tag at this position.Add a block tag.Add a block tag.(package private) Map<String, List<DocTagJHtmlComment>> inlineDocTag(String tag, String body) Add an inline doc tag with simple content.nl()Add a newline.p()Add a paragraph separator.Add a@paramtag.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 class org.jboss.jdeparser.AbstractJHtmlComment
add, htmlLink, htmlTag, preformattedCodeMethods inherited from class org.jboss.jdeparser.AbstractJComment
add, addItemDirectly, code, getContent, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JComment
code, linkConstructor, linkField, linkMethod, linkMethod, linkTypeMethods inherited from interface org.jboss.jdeparser.JDocComment
inlineDocTagMethods inherited from interface org.jboss.jdeparser.JHtmlComment
htmlLink, htmlTag, preformattedCode
-
Field Details
-
docTags
-
-
Constructor Details
-
AbstractJDocComment
AbstractJDocComment()
-
-
Method Details
-
block
Description copied from interface:JCommentAdd 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 interfaceJDocComment- Specified by:
blockin interfaceJHtmlComment- Overrides:
blockin classAbstractJHtmlComment- Returns:
- the comment sub-block
-
sp
Description copied from interface:JCommentAdd a non-trailing space. If no content follows, the space will be omitted.- Specified by:
spin interfaceJComment- Specified by:
spin interfaceJDocComment- Specified by:
spin interfaceJHtmlComment- Overrides:
spin classAbstractJHtmlComment- Returns:
- this comment
-
nl
Description copied from interface:JCommentAdd a newline.- Specified by:
nlin interfaceJComment- Specified by:
nlin interfaceJDocComment- Specified by:
nlin interfaceJHtmlComment- Overrides:
nlin classAbstractJHtmlComment- Returns:
- this comment
-
typeName
Description copied from interface:JCommentAdd 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 interfaceJDocComment- Specified by:
typeNamein interfaceJHtmlComment- Overrides:
typeNamein classAbstractJHtmlComment- Parameters:
type- the type name to add- Returns:
- this comment
-
text
Description copied from interface:JCommentAdd some text to the end of this comment. No formatting or line breaks are inserted.- Specified by:
textin interfaceJComment- Specified by:
textin interfaceJDocComment- Specified by:
textin interfaceJHtmlComment- Overrides:
textin classAbstractJHtmlComment- Parameters:
text- the text to add- Returns:
- this comment
-
inlineDocTag
Description copied from interface:JCommentAdd an inline doc tag with simple content.- Specified by:
inlineDocTagin interfaceJComment- Specified by:
inlineDocTagin interfaceJDocComment- Specified by:
inlineDocTagin interfaceJHtmlComment- Overrides:
inlineDocTagin classAbstractJHtmlComment- Parameters:
tag- the tag name (without the leading@sign)body- the complete tag body- Returns:
- this comment
-
docRoot
Description copied from interface:JCommentAdd the{@docRoot}tag at this position.- Specified by:
docRootin interfaceJComment- Specified by:
docRootin interfaceJDocComment- Specified by:
docRootin interfaceJHtmlComment- Overrides:
docRootin classAbstractJHtmlComment- Returns:
- this comment
-
p
Description copied from interface:JHtmlCommentAdd a paragraph separator.- Specified by:
pin interfaceJDocComment- Specified by:
pin interfaceJHtmlComment- Overrides:
pin classAbstractJHtmlComment- Returns:
- this HTML comment
-
br
Description copied from interface:JHtmlCommentAdd a line separator.- Specified by:
brin interfaceJDocComment- Specified by:
brin interfaceJHtmlComment- Overrides:
brin classAbstractJHtmlComment- Returns:
- this HTML comment
-
value
Description copied from interface:JHtmlCommentAdd a@valueinline tag.- Specified by:
valuein interfaceJDocComment- Specified by:
valuein interfaceJHtmlComment- Overrides:
valuein classAbstractJHtmlComment- Parameters:
type- the value typefieldName- the value field name- Returns:
- this HTML comment
-
docTag
Description copied from interface:JDocCommentAdd a block tag.- Specified by:
docTagin interfaceJDocComment- Parameters:
tag- the tag name- Returns:
- the block tag comment block
-
docTag
Description copied from interface:JDocCommentAdd a block tag.- Specified by:
docTagin interfaceJDocComment- Parameters:
tag- the tag namefirstWord- the tag body first word- Returns:
- the block tag comment block
-
_return
Description copied from interface:JDocCommentAdd a@returntag.- Specified by:
_returnin interfaceJDocComment- Returns:
- the tag body
-
_throws
Description copied from interface:JDocCommentAdd a@throwstag.- Specified by:
_throwsin interfaceJDocComment- Parameters:
exceptionType- the type of exception- Returns:
- the tag body
-
param
Description copied from interface:JDocCommentAdd a@paramtag.- Specified by:
paramin interfaceJDocComment- Parameters:
name- the parameter name- Returns:
- the tag body
-
getDocTags
Map<String,List<DocTagJHtmlComment>> getDocTags()
-