public class JDocComment
extends java.lang.Object
| Constructor | Description |
|---|---|
JDocComment() |
Creates a new JavaDoc Comment
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDescriptor(JDocDescriptor jdesc) |
Adds the given JDocDescriptor to this JDocComment
|
void |
appendComment(java.lang.String comment) |
Appends the comment String to this JDocComment
|
java.lang.String |
getComment() |
Returns the String value of this JDocComment.
|
java.util.Enumeration<JDocDescriptor> |
getDescriptors() |
Returns an enumeration of the parameters of this JDocComment
|
int |
getLength() |
Returns the length of the comment
|
JDocDescriptor |
getParamDescriptor(java.lang.String name) |
Returns the Parameter Descriptor associated with the
given name
|
void |
print(JSourceWriter jsw) |
prints this JavaDoc comment using the given JSourceWriter
|
void |
setComment(java.lang.String comment) |
Sets the comment String of this JDocComment
|
java.lang.String |
toString() |
Returns the String representation of this Java Doc Comment
|
public void addDescriptor(JDocDescriptor jdesc)
jdesc - the JDocDescriptor to addpublic void appendComment(java.lang.String comment)
comment - the comment to appendpublic java.lang.String getComment()
public java.util.Enumeration<JDocDescriptor> getDescriptors()
public int getLength()
public JDocDescriptor getParamDescriptor(java.lang.String name)
name - the name of the parameterpublic void print(JSourceWriter jsw)
jsw - the JSourceWriter to print topublic void setComment(java.lang.String comment)
comment - the comment String of this JDocCommentpublic java.lang.String toString()
toString in class java.lang.Object