OptionHandlerJavadoc (original) (raw)
java.lang.Object
- weka.core.Javadoc
- weka.core.OptionHandlerJavadoc
All Implemented Interfaces:
OptionHandler, RevisionHandler
public class OptionHandlerJavadoc
extends Javadoc
Generates Javadoc comments from the OptionHandler's options. Can automatically update the option comments if they're surrounded by the OPTIONS_STARTTAG and OPTIONS_ENDTAG (the indention is determined via the OPTIONS_STARTTAG).
Valid options are:
-W
The class to load.
-nostars
Suppresses the '*' in the Javadoc.
-dir
The directory above the package hierarchy of the class.
-silent
Suppresses printing in the console.
-noprolog
Suppresses the 'Valid options are...' prolog in the Javadoc.
Version: Revision:1.8Revision: 1.8 Revision:1.8
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
OPTIONS_STARTTAG, OPTIONS_ENDTAG
Field Summary
Fields
Modifier and Type Field and Description static java.lang.String OPTIONS_ENDTAG the end comment tag for inserting the generated Javadoc static java.lang.String OPTIONS_STARTTAG the start comment tag for inserting the generated Javadoc Constructor Summary
Constructors
Constructor and Description OptionHandlerJavadoc() default constructor Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type Method and Description java.lang.String[] getOptions() Gets the current settings of this object. boolean getProlog() whether "Valid options are..." prolog is included in the Javadoc java.lang.String getRevision() Returns the revision string. java.util.Enumeration listOptions() Returns an enumeration describing the available options. static void main(java.lang.String[] args) Parses the given commandline parameters and generates the Javadoc. void setOptions(java.lang.String[] options) Parses a given list of options. void setProlog(boolean value) sets whether to add the "Valid options are..." prolog * ### Methods inherited from class weka.core.[Javadoc](../../weka/core/Javadoc.html "class in weka.core") `[generate](../../weka/core/Javadoc.html#generate--), [generateHelp](../../weka/core/Javadoc.html#generateHelp--), [getClassname](../../weka/core/Javadoc.html#getClassname--), [getDir](../../weka/core/Javadoc.html#getDir--), [getSilent](../../weka/core/Javadoc.html#getSilent--), [getUseStars](../../weka/core/Javadoc.html#getUseStars--), [setClassname](../../weka/core/Javadoc.html#setClassname-java.lang.String-), [setDir](../../weka/core/Javadoc.html#setDir-java.lang.String-), [setSilent](../../weka/core/Javadoc.html#setSilent-boolean-), [setUseStars](../../weka/core/Javadoc.html#setUseStars-boolean-), [updateJavadoc](../../weka/core/Javadoc.html#updateJavadoc--)` * ### Methods inherited from class java.lang.Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Field Detail
* #### OPTIONS\_STARTTAG public static final java.lang.String OPTIONS_STARTTAG the start comment tag for inserting the generated Javadoc See Also: [Constant Field Values](../../constant-values.html#weka.core.OptionHandlerJavadoc.OPTIONS%5FSTARTTAG) * #### OPTIONS\_ENDTAG public static final java.lang.String OPTIONS_ENDTAG the end comment tag for inserting the generated Javadoc See Also: [Constant Field Values](../../constant-values.html#weka.core.OptionHandlerJavadoc.OPTIONS%5FENDTAG)
Constructor Detail
* #### OptionHandlerJavadoc public OptionHandlerJavadoc() default constructor
Method Detail
* #### listOptions public java.util.Enumeration listOptions() Returns an enumeration describing the available options. Specified by: `[listOptions](../../weka/core/OptionHandler.html#listOptions--)` in interface `[OptionHandler](../../weka/core/OptionHandler.html "interface in weka.core")` Overrides: `[listOptions](../../weka/core/Javadoc.html#listOptions--)` in class `[Javadoc](../../weka/core/Javadoc.html "class in weka.core")` Returns: an enumeration of all the available options. * #### setOptions public void setOptions(java.lang.String[] options) throws java.lang.Exception Parses a given list of options. Specified by: `[setOptions](../../weka/core/OptionHandler.html#setOptions-java.lang.String:A-)` in interface `[OptionHandler](../../weka/core/OptionHandler.html "interface in weka.core")` Overrides: `[setOptions](../../weka/core/Javadoc.html#setOptions-java.lang.String:A-)` in class `[Javadoc](../../weka/core/Javadoc.html "class in weka.core")` Parameters: `options` \- the list of options as an array of strings Throws: `java.lang.Exception` \- if an option is not supported * #### getOptions public java.lang.String[] getOptions() Gets the current settings of this object. Specified by: `[getOptions](../../weka/core/OptionHandler.html#getOptions--)` in interface `[OptionHandler](../../weka/core/OptionHandler.html "interface in weka.core")` Overrides: `[getOptions](../../weka/core/Javadoc.html#getOptions--)` in class `[Javadoc](../../weka/core/Javadoc.html "class in weka.core")` Returns: an array of strings suitable for passing to setOptions * #### setProlog public void setProlog(boolean value) sets whether to add the "Valid options are..." prolog Parameters: `value` \- true if the prolog is to be added * #### getProlog public boolean getProlog() whether "Valid options are..." prolog is included in the Javadoc Returns: true if the prolog is printed * #### getRevision public java.lang.String getRevision() Returns the revision string. Returns: the revision * #### main public static void main(java.lang.String[] args) Parses the given commandline parameters and generates the Javadoc. Parameters: `args` \- the commandline parameters for the object