Package adams.doc.listing
Class Listing
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class Listing extends AbstractOptionHandler
Generates class listings per module.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Environmentthe environment class (dummy option).protected AbstractListingOutputm_Outputthe output scheme to use.protected BaseClassnamem_Superclassthe superclass to use.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Listing()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.StringenvironmentTipText()Returns the tip text for this property.Stringgenerate()Generates the listing.StringgetEnvironment()returns the current classname of the environment class to use.AbstractListingOutputgetOutput()Returns the scheme for outputting the generated listing.BaseClassnamegetSuperclass()Returns the superclass to use for the listing.StringglobalInfo()Returns a string describing the object.static voidmain(String[] args)For generating the listing from the commandline.StringoutputTipText()Returns the tip text for this property.static voidrunListing(String[] options)For generating the listing.voidsetEnvironment(String value)sets the classname of the environment class to use.voidsetOutput(AbstractListingOutput value)Sets the scheme for outputting the generated listing.voidsetSuperclass(BaseClassname value)Sets the superclass to use for the listing.StringsuperclassTipText()Returns the tip text for this property.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Environment
protected String m_Environment
the environment class (dummy option).
-
m_Superclass
protected BaseClassname m_Superclass
the superclass to use.
-
m_Output
protected AbstractListingOutput m_Output
the output scheme to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Description copied from class:AbstractOptionHandlerReturns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setEnvironment
public void setEnvironment(String value)
sets the classname of the environment class to use.- Parameters:
value- the environment class name
-
getEnvironment
public String getEnvironment()
returns the current classname of the environment class to use.- Returns:
- the current classname of the environment class
-
environmentTipText
public String environmentTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSuperclass
public void setSuperclass(BaseClassname value)
Sets the superclass to use for the listing.- Parameters:
value- the scheme
-
getSuperclass
public BaseClassname getSuperclass()
Returns the superclass to use for the listing.- Returns:
- the scheme
-
superclassTipText
public String superclassTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOutput
public void setOutput(AbstractListingOutput value)
Sets the scheme for outputting the generated listing.- Parameters:
value- the scheme
-
getOutput
public AbstractListingOutput getOutput()
Returns the scheme for outputting the generated listing.- Returns:
- the scheme
-
outputTipText
public String outputTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
generate
public String generate()
Generates the listing.- Returns:
- null if successful, otherwise error message
-
runListing
public static void runListing(String[] options) throws Exception
For generating the listing.- Parameters:
options- the commandline options- Throws:
Exception- if generation fails
-
-