public class TdlModuleConfigLoader extends TdlModuleGenUtility
commandLine, debug, helpFlag, jars, outdir, parser, searchPaths, srcdir, targets, workspace| Constructor and Description |
|---|
TdlModuleConfigLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSrcDir(String dir)
Adds a directory that will be recursively searched for modules.
|
TdlModuleDefinitionManager |
definitionManager() |
void |
displayHelp()
Called if the help flag is found anywhere on the commandline.
|
void |
generate(TdlModule module,
ConfigLocation location,
TdlModuleDefinitionManager definitions)
Derived classes should overload this method to perform artifact generation.
|
void |
generate(TdlModuleDefinitionManager definitions)
Derived classes should overload this method to perform artifact generation when no target module
has been specified on the commandline.
|
void |
loadAllModules(String srcdir)
Load all modules from the specified directory.
|
void |
loadModule(String srcdir,
String module)
Load the specified module and all of its dependencies.
|
void |
objectResolutionComplete(TdlModule module,
ConfigLocation location,
TdlModuleDefinitionManager definitions)
Called after object resolution has completely successfully.
|
void |
parsingComplete(TdlModule module,
ConfigLocation location,
TdlModuleDefinitionManager definitions)
Called prior to the object resolution phase so that derived classes can perform intermediate
processing such as generation of internal types.
|
getLocation, initialize, runpublic void loadAllModules(String srcdir) throws ResultException, DmcValueException, IOException, DmcRuleExceptionSet, DmcNameClashException, DmcValueExceptionSet
srcdir - the directory from which to load modulesResultExceptionDmcValueExceptionIOExceptionDmcRuleExceptionSetDmcNameClashExceptionDmcValueExceptionSetpublic void loadModule(String srcdir, String module) throws ResultException, DmcValueException, IOException, DmcRuleExceptionSet, DmcNameClashException, DmcValueExceptionSet
srcdir - the directory from which to load modulesmodule - the name of the module (without the file extension)ResultExceptionDmcValueExceptionIOExceptionDmcRuleExceptionSetDmcNameClashExceptionDmcValueExceptionSetpublic void addSrcDir(String dir)
dir - the directory to be searchedpublic TdlModuleDefinitionManager definitionManager()
public void parsingComplete(TdlModule module, ConfigLocation location, TdlModuleDefinitionManager definitions) throws ResultException
TdlModuleGeneratorInterfacemodule - the module that was just parsedlocation - the module's locationdefinitions - the current set of definitionsResultException - if there are problemspublic void objectResolutionComplete(TdlModule module, ConfigLocation location, TdlModuleDefinitionManager definitions) throws ResultException
TdlModuleGeneratorInterfacemodule - the module that was just parsedlocation - the module's locationdefinitions - the current set of definitionsResultException - if there are problemspublic void generate(TdlModule module, ConfigLocation location, TdlModuleDefinitionManager definitions) throws ResultException, IOException
TdlModuleGeneratorInterfacemodule - the module for which generation is being performedlocation - where the module was founddefinitions - the current set of definitionsResultException - if there are problemsIOException - if IO problemspublic void generate(TdlModuleDefinitionManager definitions) throws ResultException, IOException
TdlModuleGeneratorInterfacedefinitions - the current set of definitionsResultException - is there are problemsIOException - if IO problemspublic void displayHelp()
TdlModuleGeneratorInterfaceCopyright © 2023. All rights reserved.