![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
An error reporting strategy that parses human-readable output. More...
Inherits org.lflang.generator.DiagnosticReporting.Strategy.
Public Member Functions | |
| HumanReadableReportingStrategy (Pattern diagnosticMessagePattern, Pattern labelPattern) | |
| Instantiate a reporting strategy for lines of validator output that match diagnosticMessagePattern. | |
| HumanReadableReportingStrategy (Pattern diagnosticMessagePattern, Pattern labelPattern, Path relativeTo) | |
| Instantiate a reporting strategy for lines of validator output that match diagnosticMessagePattern. | |
| void | report (String validationOutput, MessageReporter messageReporter, Map< Path, CodeMap > map) |
| Parse the validation output and report any errors that it contains. | |
An error reporting strategy that parses human-readable output.
| org.lflang.generator.HumanReadableReportingStrategy.HumanReadableReportingStrategy | ( | Pattern | diagnosticMessagePattern, |
| Pattern | labelPattern ) |
Instantiate a reporting strategy for lines of validator output that match diagnosticMessagePattern.
| diagnosticMessagePattern | A pattern that matches lines that should be reported via this strategy. This pattern must contain named capturing groups called "path", "line", "column", "message", and "severity". |
| labelPattern | A pattern that matches lines that act as labels, showing the location of the relevant piece of text. This pattern must contain two groups, the first of which must match characters that precede the location given by the "line" and "column" groups. |
| org.lflang.generator.HumanReadableReportingStrategy.HumanReadableReportingStrategy | ( | Pattern | diagnosticMessagePattern, |
| Pattern | labelPattern, | ||
| Path | relativeTo ) |
Instantiate a reporting strategy for lines of validator output that match diagnosticMessagePattern.
| diagnosticMessagePattern | a pattern that matches lines that should be reported via this strategy. This pattern must contain named capturing groups called "path", "line", "column", "message", and "severity". |
| labelPattern | A pattern that matches lines that act as labels, showing the location of the relevant piece of text. This pattern must contain two groups, the first of which must match characters that precede the location given by the "line" and "column" groups. |
| relativeTo | The path against which any paths should be resolved. |
| void org.lflang.generator.HumanReadableReportingStrategy.report | ( | String | validationOutput, |
| MessageReporter | messageReporter, | ||
| Map< Path, CodeMap > | map ) |
Parse the validation output and report any errors that it contains.
| validationOutput | any validation output |
| messageReporter | any error reporter |
| map | the map from generated files to CodeMaps |
Implements org.lflang.generator.DiagnosticReporting.Strategy.