public abstract class ToolDriverBase extends GenericToolDriverBase
Uses ToolOptions to pass arguments to the driver.
| Modifier and Type | Field and Description |
|---|---|
protected Model |
model |
diags, options| Modifier | Constructor and Description |
|---|---|
protected |
ToolDriverBase(ToolOptions options) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Diag> |
getDiags()
Returns diagnosis, including errors and warnings.
|
Model |
getModel()
Returns the model.
|
protected com.google.protobuf.ExtensionRegistry |
getPlatformExtensions()
Get the extension registry to use for processing service config.
|
boolean |
hasErrors()
Check if there are any errors.
|
protected void |
onErrorsExit()
Report any errors and exit if there were some.
|
protected abstract void |
registerAspects()
Registers aspects for this tool.
|
protected abstract void |
registerProcessors()
Registers processors for this tool.
|
int |
run()
Runs the tool.
|
concatenateNonEmptyStrings, getDataPath, getDiagCollector, getOptions, process, reportDiag, setDiagCollectorprotected Model model
protected ToolDriverBase(ToolOptions options)
@Nullable public Model getModel()
public boolean hasErrors()
public java.util.List<Diag> getDiags()
protected com.google.protobuf.ExtensionRegistry getPlatformExtensions()
google/api/annotations.proto. Can be overridden by sub-classes.protected abstract void registerProcessors()
protected abstract void registerAspects()
public int run()
run in class GenericToolDriverBaseprotected void onErrorsExit()
onErrorsExit in class GenericToolDriverBase