public abstract class GenericToolDriverBase
extends java.lang.Object
Uses ToolOptions to pass arguments to the driver.
| Modifier and Type | Field and Description |
|---|---|
protected DiagCollector |
diags |
protected ToolOptions |
options |
| Modifier | Constructor and Description |
|---|---|
protected |
GenericToolDriverBase(ToolOptions options) |
protected |
GenericToolDriverBase(ToolOptions options,
DiagCollector diags) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
concatenateNonEmptyStrings(java.lang.String separator,
java.lang.String... parts) |
protected java.lang.String |
getDataPath()
Returns the data path, including as specified by options and platform dependent defaults.
|
DiagCollector |
getDiagCollector() |
ToolOptions |
getOptions()
Returns options.
|
protected void |
onErrorsExit()
Report any errors and exit if there were some.
|
protected abstract void |
process()
Method implementing the actual tool processing.
|
protected void |
reportDiag()
Report errors and warnings.
|
int |
run()
Runs the tool.
|
protected void |
setDiagCollector(DiagCollector diags)
Sets the DiagCollector for this tool to use.
|
protected final ToolOptions options
protected DiagCollector diags
protected GenericToolDriverBase(ToolOptions options)
protected GenericToolDriverBase(ToolOptions options, DiagCollector diags)
public ToolOptions getOptions()
protected void setDiagCollector(DiagCollector diags)
public DiagCollector getDiagCollector()
protected abstract void process()
throws java.lang.Exception
java.lang.Exceptionpublic int run()
protected java.lang.String getDataPath()
protected java.lang.String concatenateNonEmptyStrings(java.lang.String separator,
java.lang.String... parts)
protected void onErrorsExit()
protected void reportDiag()