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