Package com.github.javaparser.javadoc
Class Javadoc
- java.lang.Object
-
- com.github.javaparser.javadoc.Javadoc
-
public class Javadoc extends Object
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 Constructor Description Javadoc(JavadocDescription description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Javadoc
addBlockTag(JavadocBlockTag blockTag)
Javadoc
addBlockTag(String tagName)
Javadoc
addBlockTag(String tagName, String content)
boolean
equals(Object o)
List<JavadocBlockTag>
getBlockTags()
JavadocDescription
getDescription()
int
hashCode()
JavadocComment
toComment(String indentation)
Create a JavadocComment, by formatting the text of the Javadoc using the given indentation/String
toString()
String
toText()
Return the text content of the document.
-
-
-
Constructor Detail
-
Javadoc
public Javadoc(JavadocDescription description)
-
-
Method Detail
-
addBlockTag
public Javadoc addBlockTag(JavadocBlockTag blockTag)
-
toText
public String toText()
Return the text content of the document. It does not containing trailing spaces and asterisks at the start of the line.
-
toComment
public JavadocComment toComment(String indentation)
Create a JavadocComment, by formatting the text of the Javadoc using the given indentation/
-
getDescription
public JavadocDescription getDescription()
-
getBlockTags
public List<JavadocBlockTag> getBlockTags()
-
-