Package adams.doc.latex.generator
Class AbstractMetaCodeGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.doc.latex.generator.AbstractCodeGenerator
-
- adams.doc.latex.generator.AbstractMetaCodeGenerator
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,CodeGenerator
,adams.flow.core.FlowContextHandler
,Serializable
- Direct Known Subclasses:
AbstractMetaCodeGeneratorWithNoTrailingSpace
,BlockSize
,Figure
,MultiCol
public abstract class AbstractMetaCodeGenerator extends AbstractCodeGenerator
Ancestor for generators that enhance another base generator.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeGenerator
m_Generator
the base generator to use.-
Fields inherited from class adams.doc.latex.generator.AbstractCodeGenerator
m_FlowContext, m_NoVariableExpansion, m_Skip
-
-
Constructor Summary
Constructors Constructor Description AbstractMetaCodeGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.abstract String
generatorTipText()
Returns the tip text for this property.protected abstract CodeGenerator
getDefaultGenerator()
Returns the default code generator to use.CodeGenerator
getGenerator()
Returns the base generator to use.String
getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.void
setFlowContext(adams.flow.core.Actor value)
Sets the flow context.void
setGenerator(CodeGenerator value)
Sets the base generator to use.-
Methods inherited from class adams.doc.latex.generator.AbstractCodeGenerator
check, doGenerate, ensureTrailingNewLine, ensureTrailingNewLine, escape, expand, expandEscape, generate, getAdditionalInformation, getFlowContext, getNoVariableExpansion, getRequiredPackages, getSkip, noVariableExpansionTipText, setNoVariableExpansion, setSkip, skipTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Generator
protected CodeGenerator m_Generator
the base generator to use.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractCodeGenerator
-
getDefaultGenerator
protected abstract CodeGenerator getDefaultGenerator()
Returns the default code generator to use.- Returns:
- the default
-
setGenerator
public void setGenerator(CodeGenerator value)
Sets the base generator to use.- Parameters:
value
- the generator
-
getGenerator
public CodeGenerator getGenerator()
Returns the base generator to use.- Returns:
- the generator
-
setFlowContext
public void setFlowContext(adams.flow.core.Actor value)
Sets the flow context.- Specified by:
setFlowContext
in interfaceCodeGenerator
- Specified by:
setFlowContext
in interfaceadams.flow.core.FlowContextHandler
- Overrides:
setFlowContext
in classAbstractCodeGenerator
- Parameters:
value
- the actor
-
generatorTipText
public abstract String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceCodeGenerator
- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractCodeGenerator
- Returns:
- null if no info available, otherwise short string
-
-