![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Validate generated code. More...
Inherited by org.lflang.generator.python.PythonValidator.
Classes | |
| class | Pair |
Public Member Functions | |
| final void | doValidate (LFGeneratorContext context) throws ExecutionException, InterruptedException |
| Validate this Validator's group of generated files. | |
| final int | run (LFCommand command, CancelIndicator cancelIndicator) |
| Run the given command, report any messages produced using the reporting strategies given by getBuildReportingStrategies, and return its return code. | |
Protected Member Functions | |
| abstract Pair< DiagnosticReporting.Strategy, DiagnosticReporting.Strategy > | getBuildReportingStrategies () |
| Return the appropriate output and error reporting strategies for the main build process. | |
| abstract Collection< ValidationStrategy > | getPossibleStrategies () |
| List all validation strategies that exist for the implementor without filtering by platform or availability. | |
| boolean | validationEnabledByDefault (LFGeneratorContext context) |
| Return whether validation of generated code is enabled by default. | |
| Validator (MessageReporter messageReporter, Map< Path, CodeMap > codeMaps) | |
| Initialize a Validator that reports errors to errorReporter and adjusts document positions using codeMaps. | |
Protected Attributes | |
| final ImmutableMap< Path, CodeMap > | codeMaps |
| final MessageReporter | messageReporter |
Validate generated code.
|
protected |
| final void org.lflang.generator.Validator.doValidate | ( | LFGeneratorContext | context | ) | throws ExecutionException, InterruptedException |
Validate this Validator's group of generated files.
| context | The context of the current build. |
|
abstractprotected |
Return the appropriate output and error reporting strategies for the main build process.
Reimplemented in org.lflang.generator.python.PythonValidator.
|
abstractprotected |
List all validation strategies that exist for the implementor without filtering by platform or availability.
Reimplemented in org.lflang.generator.python.PythonValidator.
| final int org.lflang.generator.Validator.run | ( | LFCommand | command, |
| CancelIndicator | cancelIndicator ) |
Run the given command, report any messages produced using the reporting strategies given by getBuildReportingStrategies, and return its return code.
|
protected |
Return whether validation of generated code is enabled by default.
| context | The context of the current build. |
|
protected |
|
protected |