Package spoon.javadoc.internal
Class Javadoc
java.lang.Object
spoon.javadoc.internal.Javadoc
- All Implemented Interfaces:
Serializable
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
)
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBlockTag(String tagName)
addBlockTag(String tagName, String parameter, String content)
For tags like "@return good things" where tagName is "return", and the rest is content.addBlockTag(JavadocBlockTag blockTag)
boolean
int
hashCode()
static Javadoc
parses the Javadoc content (description + tags)static JavadocDescription
parse the description part (before tags) of a JavadoctoString()
toText()
Return the text content of the document.
-
Constructor Details
-
Javadoc
public Javadoc() -
Javadoc
-
-
Method Details
-
addBlockTag
-
addBlockTag
For tags like "@return good things" where tagName is "return", 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. -
getDescription
-
getBlockTags
- Returns:
- the current List of associated JavadocBlockTags
-
equals
-
hashCode
public int hashCode() -
toString
-
parseText
parse the description part (before tags) of a Javadoc -
parse
parses the Javadoc content (description + tags)
-