public class ListOptions extends java.lang.Object implements OptionHandler, RevisionHandler, CommandlineRunnable
| Constructor and Description |
|---|
ListOptions() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generate()
generates the options string.
|
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[] |
getOptions()
Gets the current settings of this object.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] options)
runs the javadoc producer with the given commandline options
|
void |
postExecution()
Perform any teardown stuff that might need to happen after execution.
|
void |
preExecution()
Perform any setup stuff that might need to happen before execution.
|
void |
run(java.lang.Object toRun,
java.lang.String[] options)
Execute the supplied object.
|
void |
setClassname(java.lang.String value)
sets the classname of the class to generate the Javadoc for
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic void setClassname(java.lang.String value)
value - the new classnamepublic java.lang.String getClassname()
public java.lang.String generateHelp()
public java.lang.String generate()
throws java.lang.Exception
java.lang.Exception - in case the generation failspublic java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic static void main(java.lang.String[] options)
options - the commandline optionspublic void preExecution()
throws java.lang.Exception
CommandlineRunnablepreExecution in interface CommandlineRunnablejava.lang.Exception - if a problem occurs during setuppublic void run(java.lang.Object toRun,
java.lang.String[] options)
throws java.lang.Exception
CommandlineRunnablerun in interface CommandlineRunnabletoRun - the object to executeoptions - any options to pass to the objectjava.lang.Exception - if a problem occurs.public void postExecution()
throws java.lang.Exception
CommandlineRunnablepostExecution in interface CommandlineRunnablejava.lang.Exception - if a problem occurs during teardown