Package adams.doc.javadoc
Class FlowJavadoc
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.doc.javadoc.Javadoc
-
- adams.doc.javadoc.FlowJavadoc
-
- All Implemented Interfaces:
Destroyable,LoggingSupporter,OptionHandler,UserModeSupporter,SizeOfHandler,Serializable
public class FlowJavadoc extends Javadoc
Generates Javadoc comments for the AbstractActor. Can automatically update the comments if they're surrounded by the FLOW_STARTTAG and FLOW_ENDTAG (the indention is determined via the FLOW_STARTTAG).
In addition to the flow tags, one can also place the tags ACCEPTS_STARTTAG/ACCEPTS_ENDTAG and GENERATES_STARTTAG/GENERATES_ENDTAG in the Javadoc. These tags don't add blocks of comments, but just a single classname. 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.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
FLOW_STARTTAG,FLOW_ENDTAG,ACCEPTS_METHOD,ACCEPTS_STARTTAG,ACCEPTS_ENDTAG,GENERATES_METHOD,GENERATES_STARTTAG,GENERATES_ENDTAG, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCEPTS_ENDTAGthe end comment tag for inserting the generated Javadoc (just "accepts").static StringACCEPTS_METHODthe accepts() method.static StringACCEPTS_STARTTAGthe start comment tag for inserting the generated Javadoc (just "accepts").static StringFLOW_ENDTAGthe end comment tag for inserting the generated Javadoc (all).static StringFLOW_STARTTAGthe start comment tag for inserting the generated Javadoc (all).static StringGENERATES_ENDTAGthe end comment tag for inserting the generated Javadoc (just "generates").static StringGENERATES_METHODthe generates() method.static StringGENERATES_STARTTAGthe start comment tag for inserting the generated Javadoc (just "generates").-
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 FlowJavadoc()
-
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.-
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, setClassname, setDir, setEnvironment, setSilent, setUserMode, setUseStars, silentTipText, toCommandLine, toHTML, toString, updateJavadoc, updateJavadoc, updateJavadoc, userModeTipText, useStarsTipText
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
FLOW_STARTTAG
public static final String FLOW_STARTTAG
the start comment tag for inserting the generated Javadoc (all).- See Also:
- Constant Field Values
-
FLOW_ENDTAG
public static final String FLOW_ENDTAG
the end comment tag for inserting the generated Javadoc (all).- See Also:
- Constant Field Values
-
ACCEPTS_METHOD
public static final String ACCEPTS_METHOD
the accepts() method.- See Also:
- Constant Field Values
-
ACCEPTS_STARTTAG
public static final String ACCEPTS_STARTTAG
the start comment tag for inserting the generated Javadoc (just "accepts").- See Also:
- Constant Field Values
-
ACCEPTS_ENDTAG
public static final String ACCEPTS_ENDTAG
the end comment tag for inserting the generated Javadoc (just "accepts").- See Also:
- Constant Field Values
-
GENERATES_METHOD
public static final String GENERATES_METHOD
the generates() method.- See Also:
- Constant Field Values
-
GENERATES_STARTTAG
public static final String GENERATES_STARTTAG
the start comment tag for inserting the generated Javadoc (just "generates").- See Also:
- Constant Field Values
-
GENERATES_ENDTAG
public static final String GENERATES_ENDTAG
the end comment tag for inserting the generated Javadoc (just "generates").- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classJavadoc
-
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
-
main
public static void main(String[] args)
Parses the given commandline parameters and generates the Javadoc.- Parameters:
args- the commandline parameters for the object
-
-