Package adams.doc.latex.generator
Interface CodeGenerator
-
- All Superinterfaces:
adams.core.AdditionalInformationHandler,adams.core.Destroyable,adams.flow.core.FlowContextHandler,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter
- All Known Subinterfaces:
EnvironmentWithNoTrailingSpace
- All Known Implementing Classes:
AbstractCodeGenerator,AbstractEnvironmentWithNoTrailingSpace,AbstractFileReferencingCodeGenerator,AbstractMetaCodeGenerator,AbstractMetaCodeGeneratorWithNoTrailingSpace,BlockSize,ClearPage,CustomStatements,Dummy,Figure,Image,ImportContent,Include,Input,ListOfFigures,ListOfTables,MiniPage,MultiCol,MultiGenerator,NewPage,NewSection,Table,TableOfContents,Verbatim
public interface CodeGenerator extends adams.core.option.OptionHandler, adams.flow.core.FlowContextHandler, adams.core.QuickInfoSupporter, adams.core.AdditionalInformationHandlerInterface for LaTeX code generators.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringgenerate()Generates the code.StringgetAdditionalInformation()Returns the additional information.adams.flow.core.ActorgetFlowContext()Returns the flow context, if any.booleangetNoVariableExpansion()Returns whether to skip variable expansion.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.String[]getRequiredPackages()Returns the list of required LaTeX packages for this code generator.booleangetSkip()Returns whether the generator is skipped.StringnoVariableExpansionTipText()Returns the tip text for this property.voidsetFlowContext(adams.flow.core.Actor value)Sets the flow context.voidsetNoVariableExpansion(boolean value)Sets whether to skip variable expansion.voidsetSkip(boolean value)Sets whether the generator is skipped.StringskipTipText()Returns the tip text for this property.
-
-
-
Method Detail
-
setSkip
void setSkip(boolean value)
Sets whether the generator is skipped.- Parameters:
value- true if generation is to be skipped
-
getSkip
boolean getSkip()
Returns whether the generator is skipped.- Returns:
- true if generation is skipped
-
skipTipText
String skipTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setNoVariableExpansion
void setNoVariableExpansion(boolean value)
Sets whether to skip variable expansion.- Parameters:
value- true if to skip
-
getNoVariableExpansion
boolean getNoVariableExpansion()
Returns whether to skip variable expansion.- Returns:
- true if to skip
-
noVariableExpansionTipText
String noVariableExpansionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFlowContext
void setFlowContext(adams.flow.core.Actor value)
Sets the flow context.- Specified by:
setFlowContextin interfaceadams.flow.core.FlowContextHandler- Parameters:
value- the actor
-
getFlowContext
adams.flow.core.Actor getFlowContext()
Returns the flow context, if any.- Specified by:
getFlowContextin interfaceadams.flow.core.FlowContextHandler- Returns:
- the actor, null if none available
-
getQuickInfo
String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.
Default implementation returns null.- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Returns:
- null if no info available, otherwise short string
-
getRequiredPackages
String[] getRequiredPackages()
Returns the list of required LaTeX packages for this code generator.- Returns:
- the packages
-
getAdditionalInformation
String getAdditionalInformation()
Returns the additional information.- Specified by:
getAdditionalInformationin interfaceadams.core.AdditionalInformationHandler- Returns:
- the additional information, null or 0-length string for no information
-
generate
String generate()
Generates the code.- Returns:
- the generated code
-
-