lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.IntegratedBuilder Class Reference

Manage Lingua Franca build processes that are requested from the language server. More...

Classes

interface  ReportProgress
 A ProgressReporter reports the progress of a build. More...

Public Member Functions

Resource getResource (URI uri)
 Returns the resource corresponding to uri.
GeneratorResult run (URI uri, String json, boolean mustComplete, ReportProgress reportProgress, CancelIndicator cancelIndicator)
 Generates code from the Lingua Franca file f.

Static Public Attributes

static final int COMPILED_PERCENT_PROGRESS = 100
static final int GENERATED_PERCENT_PROGRESS = 67
static final int START_PERCENT_PROGRESS = 0
static final int VALIDATED_PERCENT_PROGRESS = 33

Protected Member Functions

GeneratorArguments getArgs (String jsonString)
 Return arguments to feed to the code generator.

Static Package Functions

static DiagnosticSeverity convertSeverity (Severity severity)

Detailed Description

Manage Lingua Franca build processes that are requested from the language server.

Author
Peter Donovan

Member Function Documentation

◆ convertSeverity()

DiagnosticSeverity org.lflang.generator.IntegratedBuilder.convertSeverity ( Severity severity)
staticpackage

◆ getArgs()

GeneratorArguments org.lflang.generator.IntegratedBuilder.getArgs ( String jsonString)
protected

Return arguments to feed to the code generator.

Currently, no arguments are being set.

◆ getResource()

Resource org.lflang.generator.IntegratedBuilder.getResource ( URI uri)

Returns the resource corresponding to uri.

Parameters
uriThe URI of a Lingua Franca file.
Returns
The resource corresponding to uri.

◆ run()

GeneratorResult org.lflang.generator.IntegratedBuilder.run ( URI uri,
String json,
boolean mustComplete,
ReportProgress reportProgress,
CancelIndicator cancelIndicator )

Generates code from the Lingua Franca file f.

Parameters
uriThe URI of a Lingua Franca file.
jsonThe JSON configuration.
mustCompleteWhether the build must be taken to completion.
reportProgressCallback for reporting build progress.
cancelIndicatorIndicator for cancellation.
Returns
The result of the build.

Member Data Documentation

◆ COMPILED_PERCENT_PROGRESS

final int org.lflang.generator.IntegratedBuilder.COMPILED_PERCENT_PROGRESS = 100
static

◆ GENERATED_PERCENT_PROGRESS

final int org.lflang.generator.IntegratedBuilder.GENERATED_PERCENT_PROGRESS = 67
static

◆ START_PERCENT_PROGRESS

final int org.lflang.generator.IntegratedBuilder.START_PERCENT_PROGRESS = 0
static

◆ VALIDATED_PERCENT_PROGRESS

final int org.lflang.generator.IntegratedBuilder.VALIDATED_PERCENT_PROGRESS = 33
static

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/IntegratedBuilder.java