public class ModuleCConfigLoader extends ModuleCGenUtility
commandLine, debug, helpFlag, jars, outdir, parser, searchPaths, srcdir, targets, workspace| Constructor and Description |
|---|
ModuleCConfigLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSrcDir(String dir)
Adds a directory that will be recursively searched for modules.
|
ModuleCDefinitionManager |
definitionManager() |
void |
displayHelp()
Called if the help flag is found anywhere on the commandline.
|
void |
generate(ModuleC module,
ConfigLocation location,
ModuleCDefinitionManager definitions)
Derived classes should overload this method to perform artifact generation.
|
void |
generate(ModuleCDefinitionManager 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(ModuleC module,
ConfigLocation location,
ModuleCDefinitionManager definitions)
Called after object resolution has completely successfully.
|
void |
parsingComplete(ModuleC module,
ConfigLocation location,
ModuleCDefinitionManager definitions)
Called prior to the object resolution phase so that derived classes can perform intermediate
processing such as generation of internal types.
|
getLocation, getLocation, 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 ModuleCDefinitionManager definitionManager()
public void parsingComplete(ModuleC module, ConfigLocation location, ModuleCDefinitionManager definitions) throws ResultException
ModuleCGeneratorInterfacemodule - the module that was just parsedlocation - the module's locationdefinitions - the current set of definitionsResultException - if there are problemspublic void objectResolutionComplete(ModuleC module, ConfigLocation location, ModuleCDefinitionManager definitions) throws ResultException
ModuleCGeneratorInterfacemodule - the module that was just parsedlocation - the module's locationdefinitions - the current set of definitionsResultException - if there are problemspublic void generate(ModuleC module, ConfigLocation location, ModuleCDefinitionManager definitions) throws ResultException, IOException
ModuleCGeneratorInterfacemodule - 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(ModuleCDefinitionManager definitions) throws ResultException, IOException
ModuleCGeneratorInterfacedefinitions - the current set of definitionsResultException - is there are problemsIOException - if IO problemspublic void displayHelp()
ModuleCGeneratorInterfaceCopyright © 2023. All rights reserved.