public abstract class ModuleCGenUtility extends Object implements ModuleCGeneratorInterface
| Modifier and Type | Field and Description |
|---|---|
protected CommandLine |
commandLine |
protected BooleanVar |
debug |
protected BooleanVar |
helpFlag |
protected StringArrayList |
jars |
protected StringBuffer |
outdir |
protected ModuleCParsingCoordinator |
parser |
protected StringArrayList |
searchPaths |
protected StringArrayList |
srcdir |
protected StringArrayList |
targets |
protected StringBuffer |
workspace |
| Modifier | Constructor and Description |
|---|---|
protected |
ModuleCGenUtility() |
| Modifier and Type | Method and Description |
|---|---|
ConfigLocation |
getLocation(ModuleA module) |
ConfigLocation |
getLocation(ModuleB module) |
ConfigLocation |
getLocation(ModuleC module) |
void |
initialize()
Derived classes may overload this method to perform additional initialization
including checking that commandline arguments are appropriate.
|
void |
run(String[] args)
Based on the command line arguments, we hunt for
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisplayHelp, generate, generate, objectResolutionComplete, parsingCompleteprotected ModuleCParsingCoordinator parser
protected CommandLine commandLine
protected BooleanVar helpFlag
protected StringArrayList srcdir
protected StringBuffer workspace
protected StringBuffer outdir
protected StringArrayList targets
protected BooleanVar debug
protected StringArrayList jars
protected StringArrayList searchPaths
public void run(String[] args) throws ResultException, DmcValueException, IOException, DmcRuleExceptionSet, DmcNameClashException, DmcValueExceptionSet
args - the command line argumentsResultException - if there are problemsDmcValueException - if values are incorrectIOException - if IO problemsDmcRuleExceptionSet - if rule failuresDmcNameClashException - if name clashesDmcValueExceptionSet - if multiple value problemspublic void initialize()
throws ResultException
ResultException - is there are problemspublic ConfigLocation getLocation(ModuleA module)
public ConfigLocation getLocation(ModuleB module)
public ConfigLocation getLocation(ModuleC module)
Copyright © 2023. All rights reserved.