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)
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private JavadocDescription |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Javadoc | |
| public Javadoc | addBlockTag(String tagName, String content)
For tags like "@return good things" where tagName is "return", and the rest is content. |
| public Javadoc | 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. |
| public Javadoc | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public List | |
| public JavadocDescription | |
| public int | |
| public JavadocComment | toComment()
Create a JavadocComment, by formatting the text of the Javadoc using no indentation (expecting the pretty printer to do the formatting.) |
| public JavadocComment | |
| public String | |
| public String |
| blockTags | back to summary |
|---|---|
| private List<JavadocBlockTag> blockTags | |
| description | back to summary |
|---|---|
| private JavadocDescription description | |
| Javadoc | back to summary |
|---|---|
| public Javadoc(JavadocDescription description) | |
| addBlockTag | back to summary |
|---|---|
| public Javadoc addBlockTag(JavadocBlockTag blockTag) | |
| addBlockTag | back to summary |
|---|---|
| public Javadoc addBlockTag(String tagName, String content) For tags like "@return good things" where tagName is "return", and the rest is content. | |
| addBlockTag | back to summary |
|---|---|
| public Javadoc 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. | |
| addBlockTag | back to summary |
|---|---|
| public Javadoc addBlockTag(String tagName) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBlockTags | back to summary |
|---|---|
public List
| |
| getDescription | back to summary |
|---|---|
| public JavadocDescription getDescription() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toComment | back to summary |
|---|---|
| public JavadocComment toComment() Create a JavadocComment, by formatting the text of the Javadoc using no indentation (expecting the pretty printer to do the formatting.) | |
| toComment | back to summary |
|---|---|
| public JavadocComment toComment(String indentation) Create a JavadocComment, by formatting the text of the Javadoc using the given indentation. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toText | back to summary |
|---|---|
| public String toText() Return the text content of the document. It does not containing trailing spaces and asterisks at the start of the line. | |