Package com.github.javaparser.javadoc
Class Javadoc
java.lang.Object
com.github.javaparser.javadoc.Javadoc
The structured content of a single Javadoc comment.
It is composed by a description and a list of block tags.
An example would be the text contained in this very Javadoc comment. At the moment
of this writing this comment does not contain any block tags (such as @see AnotherClass
)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBlockTag(JavadocBlockTag blockTag)
addBlockTag(String tagName)
addBlockTag(String tagName, String content)
For tags like "@return good things" where tagName is "return", and the rest is content.addBlockTag(String tagName, String parameter, String content)
For tags like "@param abc this is a parameter" where tagName is "param", parameter is "abc" and the rest is content.boolean
int
hashCode()
Create a JavadocComment, by formatting the text of the Javadoc using no indentation (expecting the pretty printer to do the formatting.)Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.toString()
toText()
Return the text content of the document.
-
Constructor Details
-
Javadoc
-
-
Method Details
-
addBlockTag
-
addBlockTag
For tags like "@return good things" where tagName is "return", and the rest is content. -
addBlockTag
For tags like "@param abc this is a parameter" where tagName is "param", parameter is "abc" and the rest is content. -
addBlockTag
-
toText
Return the text content of the document. It does not containing trailing spaces and asterisks at the start of the line. -
toComment
Create a JavadocComment, by formatting the text of the Javadoc using no indentation (expecting the pretty printer to do the formatting.) -
toComment
Create a JavadocComment, by formatting the text of the Javadoc using the given indentation. -
getDescription
-
getBlockTags
- Returns:
- the current List of associated JavadocBlockTags
-
equals
-
hashCode
public int hashCode() -
toString
-