public class OptionHandlerJavadoc extends Javadoc
Valid options are:
-W <classname> The class to load.
-nostars Suppresses the '*' in the Javadoc.
-dir <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.
OPTIONS_STARTTAG,
OPTIONS_ENDTAG| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_Prolog
whether to include the "Valid options..." prolog in the Javadoc
|
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
|
m_Classname, m_Dir, m_EndTag, m_Silent, m_StartTag, m_UseStars| Constructor and Description |
|---|
OptionHandlerJavadoc()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
generateJavadoc(int index)
generates and returns the Javadoc for the specified start/end tag pair.
|
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<Option> |
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
|
canInstantiateClass, generate, generateHelp, generateJavadoc, getClassname, getDir, getIndentionLength, getIndentionString, getInstance, getSilent, getUseStars, indent, println, runJavadoc, setClassname, setDir, setSilent, setUseStars, toHTML, updateJavadoc, updateJavadoc, updateJavadocpublic static final java.lang.String OPTIONS_STARTTAG
public static final java.lang.String OPTIONS_ENDTAG
protected boolean m_Prolog
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Javadocpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class Javadocoptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Javadocpublic void setProlog(boolean value)
value - true if the prolog is to be addedpublic boolean getProlog()
protected java.lang.String generateJavadoc(int index)
throws java.lang.Exception
generateJavadoc in class Javadocindex - the index in the start/end tag arrayjava.lang.Exception - in case the generation failspublic java.lang.String getRevision()
public static void main(java.lang.String[] args)
args - the commandline parameters for the object