Package adams.doc.javadoc
Class AllJavadoc
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.doc.javadoc.Javadoc
-
- adams.doc.javadoc.AllJavadoc
-
- All Implemented Interfaces:
Destroyable,LoggingSupporter,OptionHandler,UserModeSupporter,SizeOfHandler,Serializable
public class AllJavadoc extends Javadoc
Applies all known Javadoc-derived classes to a source file. Valid options are:
-env <java.lang.String> (property: environment) The class to use for determining the environment. default: adams.core.Environment-W <java.lang.String> (property: classname) The class to load. default: adams.doc.AllJavadoc-nostars (property: useStars) Controls the use of '*' in the Javadoc.-dir <java.lang.String> (property: dir) The directory above the package hierarchy of the class. default: .-silent (property: silent) Suppresses printing in the console.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Listm_Javadocscontains all the javadoc generators.-
Fields inherited from class adams.doc.javadoc.Javadoc
m_Classname, m_Dir, m_EndTag, m_Environment, m_IsBlock, m_OptionManager, m_Silent, m_StartTag, m_UserMode, m_UseStars
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AllJavadoc()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateJavadoc(int index)generates and returns the Javadoc for the specified start/end tag pair.protected voidinitialize()Initializes the members.static voidmain(String[] args)Parses the given commandline parameters and generates the Javadoc.voidsetClassname(String value)sets the classname of the class to generate the Javadoc for.voidsetSilent(boolean value)sets whether to suppress output in the console.voidsetUseStars(boolean value)sets whether to prefix the Javadoc with "*".protected StringupdateJavadoc(String content)updates the Javadoc in the given source code, using all the found Javadoc updaters.-
Methods inherited from class adams.doc.javadoc.Javadoc
canInstantiateClass, classnameTipText, cleanUpOptions, defineOptions, destroy, dirTipText, environmentTipText, forCommandLine, forName, generate, generateJavadoc, getClassname, getDir, getEnvironment, getIndentionLength, getIndentionString, getInstance, getJavadocs, getOptionManager, getSilent, getUserMode, getUseStars, indent, newOptionManager, println, runJavadoc, setDir, setEnvironment, setUserMode, silentTipText, toCommandLine, toHTML, toString, updateJavadoc, updateJavadoc, userModeTipText, useStarsTipText
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Javadocs
protected List m_Javadocs
contains all the javadoc generators.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classJavadoc
-
setClassname
public void setClassname(String value)
sets the classname of the class to generate the Javadoc for.- Overrides:
setClassnamein classJavadoc- Parameters:
value- the new classname
-
setUseStars
public void setUseStars(boolean value)
sets whether to prefix the Javadoc with "*".- Overrides:
setUseStarsin classJavadoc- Parameters:
value- true if stars are to be used
-
setSilent
public void setSilent(boolean value)
sets whether to suppress output in the console.
-
generateJavadoc
protected String generateJavadoc(int index) throws Exception
generates and returns the Javadoc for the specified start/end tag pair.- Specified by:
generateJavadocin classJavadoc- Parameters:
index- the index in the start/end tag array- Returns:
- the generated Javadoc
- Throws:
Exception- in case the generation fails
-
updateJavadoc
protected String updateJavadoc(String content) throws Exception
updates the Javadoc in the given source code, using all the found Javadoc updaters.- Overrides:
updateJavadocin classJavadoc- Parameters:
content- the source code- Returns:
- the updated source code
- Throws:
Exception- in case the generation fails
-
main
public static void main(String[] args)
Parses the given commandline parameters and generates the Javadoc.- Parameters:
args- the commandline parameters for the object
-
-