Package adams.doc.latex.generator
Class Verbatim
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.doc.latex.generator.AbstractCodeGenerator
-
- adams.doc.latex.generator.AbstractEnvironmentWithNoTrailingSpace
-
- adams.doc.latex.generator.Verbatim
-
- 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
,EnvironmentWithNoTrailingSpace
,adams.flow.core.FlowContextHandler
,Serializable
public class Verbatim extends AbstractEnvironmentWithNoTrailingSpace
Outputs the specified statements in a verbatim block. Variables get expanded.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-skip <boolean> (property: skip) If enabled, the code generation gets skipped. default: false
-no-var-expansion <boolean> (property: noVariableExpansion) If enabled, variable expansion gets skipped. default: false
-suppress-trailing-space <boolean> (property: suppressTrailingSpace) If enabled, adds a '%' to suppress the trailing space. default: false
-statements <adams.core.base.BaseText> (property: statements) The statements to insert as verbatim block. default:
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.base.BaseText
m_Statements
the statements to add in verbatim.-
Fields inherited from class adams.doc.latex.generator.AbstractEnvironmentWithNoTrailingSpace
m_SuppressTrailingSpace
-
Fields inherited from class adams.doc.latex.generator.AbstractCodeGenerator
m_FlowContext, m_NoVariableExpansion, m_Skip
-
-
Constructor Summary
Constructors Constructor Description Verbatim()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected String
doGenerate()
Generates the actual code.String[]
getRequiredPackages()
Returns the list of required LaTeX packages for this code generator.adams.core.base.BaseText
getStatements()
Returns the statements to insert as verbatim.String
globalInfo()
Returns a string describing the object.void
setStatements(adams.core.base.BaseText value)
Sets the statements to insert as verbatim.String
statementsTipText()
Returns the tip text for this property.-
Methods inherited from class adams.doc.latex.generator.AbstractEnvironmentWithNoTrailingSpace
getSuppressTrailingSpace, setSuppressTrailingSpace, suppressTrailingSpaceTipText
-
Methods inherited from class adams.doc.latex.generator.AbstractCodeGenerator
check, ensureTrailingNewLine, ensureTrailingNewLine, escape, expand, expandEscape, generate, getAdditionalInformation, getFlowContext, getNoVariableExpansion, getQuickInfo, getSkip, noVariableExpansionTipText, setFlowContext, setNoVariableExpansion, setSkip, skipTipText
-
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.doc.latex.generator.CodeGenerator
generate, getAdditionalInformation, getFlowContext, getNoVariableExpansion, getQuickInfo, getSkip, noVariableExpansionTipText, setFlowContext, setNoVariableExpansion, setSkip, skipTipText
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractEnvironmentWithNoTrailingSpace
-
setStatements
public void setStatements(adams.core.base.BaseText value)
Sets the statements to insert as verbatim.- Parameters:
value
- the statements
-
getStatements
public adams.core.base.BaseText getStatements()
Returns the statements to insert as verbatim.- Returns:
- the statements
-
statementsTipText
public String statementsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getRequiredPackages
public String[] getRequiredPackages()
Returns the list of required LaTeX packages for this code generator.- Specified by:
getRequiredPackages
in interfaceCodeGenerator
- Specified by:
getRequiredPackages
in classAbstractCodeGenerator
- Returns:
- the packages
-
doGenerate
protected String doGenerate()
Generates the actual code.- Specified by:
doGenerate
in classAbstractCodeGenerator
- Returns:
- the generated code
-
-