public abstract class Javadoc extends java.lang.Object implements OptionHandler, RevisionHandler
Constructor and Description |
---|
Javadoc() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generate()
generates either the plain Javadoc (if no filename specified) or the
updated file (if a filename is specified).
|
java.lang.String |
generateHelp()
generates a string to print as help on the console
|
java.lang.String |
getClassname()
returns the current classname
|
java.lang.String |
getDir()
returns the current dir containing the class to update.
|
java.lang.String[] |
getOptions()
Gets the current settings of this object.
|
boolean |
getSilent()
whether output in the console is suppressed
|
boolean |
getUseStars()
whether the Javadoc is prefixed with "*"
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setClassname(java.lang.String value)
sets the classname of the class to generate the Javadoc for
|
void |
setDir(java.lang.String value)
sets the dir containing the file that is to be updated.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSilent(boolean value)
sets whether to suppress output in the console
|
void |
setUseStars(boolean value)
sets whether to prefix the Javadoc with "*"
|
java.lang.String |
updateJavadoc()
generates the Javadoc and returns it applied to the source file if one was
provided, otherwise an empty string.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
getRevision
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public void setClassname(java.lang.String value)
value
- the new classnamepublic java.lang.String getClassname()
public void setUseStars(boolean value)
value
- true if stars are usedpublic boolean getUseStars()
public void setDir(java.lang.String value)
value
- the directory containing the classespublic java.lang.String getDir()
public void setSilent(boolean value)
value
- true if output is to be suppressedpublic boolean getSilent()
public java.lang.String updateJavadoc() throws java.lang.Exception
java.lang.Exception
- in case the generation failspublic java.lang.String generate() throws java.lang.Exception
java.lang.Exception
- in case the generation failspublic java.lang.String generateHelp()