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 CodeGeneratorm_Generatorthe 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 voiddefineOptions()Adds options to the internal list of options.abstract StringgeneratorTipText()Returns the tip text for this property.protected abstract CodeGeneratorgetDefaultGenerator()Returns the default code generator to use.CodeGeneratorgetGenerator()Returns the base generator to use.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.voidsetFlowContext(adams.flow.core.Actor value)Sets the flow context.voidsetGenerator(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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin 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:
setFlowContextin interfaceCodeGenerator- Specified by:
setFlowContextin interfaceadams.flow.core.FlowContextHandler- Overrides:
setFlowContextin 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:
getQuickInfoin interfaceCodeGenerator- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Overrides:
getQuickInfoin classAbstractCodeGenerator- Returns:
- null if no info available, otherwise short string
-
-