|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.javasource.JavaComment
A class representing a Java comment.
Constructor Summary | |
JavaComment()
Creates a new JavaComment which ought to be included into JavaDoc. |
|
JavaComment(boolean javaDoc)
Creates a new JavaComment. |
Method Summary | |
void |
addLine(java.lang.String s)
Adds a line to the comments content. |
void |
addParam(java.lang.String s)
Adds a JavaDoc "param" field. |
void |
addSee(java.lang.String pSee)
Adds an element to the list of Strings which should be used for "see" fields. |
void |
addThrows(java.lang.String s)
Adds a JavaDoc "throw" field. |
java.lang.String |
getAuthor()
Returns the JavaDoc author field or null, if there is no author field. |
java.util.ArrayList |
getLines()
Returns an array of lines being the comments content. |
java.util.ArrayList |
getParams()
Returns an array of values for the JavaDoc param field. |
java.lang.String |
getReturn()
Returns the JavaDoc return field or null, if there is no return field. |
java.util.ArrayList |
getSee()
Returns an array list of Strings which should be used for "see" fields. |
java.util.ArrayList |
getThrows()
Returns an array of values for the JavaDoc throw field. |
java.lang.String |
getVersion()
Returns the JavaDoc version field or null, if there is no version field. |
void |
setAuthor(java.lang.String author)
Sets the JavaDoc author field. |
void |
setReturn(java.lang.String returns)
Sets the JavaDoc return field. |
void |
setVersion(java.lang.String version)
Sets the JavaDoc version field. |
java.lang.String |
toString(int indent)
Returns a string representation of this comment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaComment()
Creates a new JavaComment which ought to be included into JavaDoc. Use JavaComment(false) for comments which should be excluded.
public JavaComment(boolean javaDoc)
Creates a new JavaComment.
javaDoc
- True, if this comment should appear in JavaDoc, false otherwiseMethod Detail |
public java.lang.String getAuthor()
Returns the JavaDoc author field or null, if there is no author field.
setAuthor(java.lang.String)
public void setAuthor(java.lang.String author)
Sets the JavaDoc author field. Use null to disable the author field.
getAuthor()
public java.lang.String getVersion()
Returns the JavaDoc version field or null, if there is no version field.
setVersion(java.lang.String)
public void setVersion(java.lang.String version)
Sets the JavaDoc version field. Use null to disable the version field.
getVersion()
public java.lang.String getReturn()
Returns the JavaDoc return field or null, if there is no return field.
setReturn(java.lang.String)
public void setReturn(java.lang.String returns)
Sets the JavaDoc return field. Use null to disable the return field.
getReturn()
public java.util.ArrayList getSee()
Returns an array list of Strings which should be used for "see" fields.
addSee(java.lang.String)
public void addSee(java.lang.String pSee)
Adds an element to the list of Strings which should be used for "see" fields.
getSee()
public java.util.ArrayList getLines()
Returns an array of lines being the comments content.
addLine(java.lang.String)
public void addLine(java.lang.String s)
Adds a line to the comments content.
getLines()
public java.util.ArrayList getParams()
Returns an array of values for the JavaDoc param field.
addParam(java.lang.String)
public void addParam(java.lang.String s)
Adds a JavaDoc "param" field.
getParams()
public java.util.ArrayList getThrows()
Returns an array of values for the JavaDoc throw field.
addThrows(java.lang.String)
public void addThrows(java.lang.String s)
Adds a JavaDoc "throw" field.
getThrows()
public java.lang.String toString(int indent)
Returns a string representation of this comment.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |