A SubContext is the context of a process within a build process.
More...
Inherits org.lflang.generator.LFGeneratorContext.
A SubContext is the context of a process within a build process.
For example, compilation of generated code may optionally be given a SubContext because compilation is part of a complete build.
- Author
- Peter Donovan
◆ SubContext()
| org.lflang.generator.SubContext.SubContext |
( |
LFGeneratorContext | containingContext, |
|
|
int | startPercentProgress, |
|
|
int | endPercentProgress ) |
Initializes the context within containingContext of the process that extends from startPercentProgress to endPercentProgress.
- Parameters
-
| containingContext | The context of the containing build process. |
| startPercentProgress | The percent progress of the containing build process when this nested process starts. |
| endPercentProgress | The percent progress of the containing build process when this nested process ends. |
◆ finish() [1/2]
Conclude this build and record the result if necessary.
- Parameters
-
| status | The status of the result. |
| codeMaps | The generated files and their corresponding code maps. |
◆ finish() [2/2]
Mark the code generation process performed in this context as finished with the result result.
- Parameters
-
| result | The result of the code generation process that was performed in this context. |
Implements org.lflang.generator.LFGeneratorContext.
◆ getArgs()
◆ getCancelIndicator()
| CancelIndicator org.lflang.generator.SubContext.getCancelIndicator |
( |
| ) |
|
never clean in a sub context
◆ getErrorReporter()
◆ getFileConfig()
| FileConfig org.lflang.generator.SubContext.getFileConfig |
( |
| ) |
|
◆ getMode()
| Mode org.lflang.generator.SubContext.getMode |
( |
| ) |
|
Return the mode of operation, which indicates how the compiler has been invoked (e.g., from within Epoch, from the command line, or via a Language Server).
Implements org.lflang.generator.LFGeneratorContext.
◆ getResult()
Return the result of the code generation process that was performed in this context.
- Returns
- the result of the code generation process that was performed in this context
Implements org.lflang.generator.LFGeneratorContext.
◆ getTargetConfig()
| TargetConfig org.lflang.generator.SubContext.getTargetConfig |
( |
| ) |
|
◆ isCleanRequested()
| boolean org.lflang.generator.SubContext.isCleanRequested |
( |
| ) |
|
◆ lfGeneratorContextOf()
| LFGeneratorContext org.lflang.generator.LFGeneratorContext.lfGeneratorContextOf |
( |
Resource | resource, |
|
|
IFileSystemAccess2 | fsa, |
|
|
IGeneratorContext | context ) |
|
staticinherited |
Return the LFGeneratorContext that best describes the given context when building Resource.
- Parameters
-
| resource | |
| fsa | |
| context | The context of a Lingua Franca build process. |
- Returns
- The LFGeneratorContext that best describes the given context when building Resource.
◆ reportProgress()
| void org.lflang.generator.SubContext.reportProgress |
( |
String | message, |
|
|
int | percentage ) |
Report the progress of a build.
- Parameters
-
| message | A message for the LF programmer to read. |
| percentage | The approximate percent completion of the build. |
Implements org.lflang.generator.LFGeneratorContext.
◆ unsuccessfulFinish()
| default void org.lflang.generator.LFGeneratorContext.unsuccessfulFinish |
( |
| ) |
|
|
inherited |
Conclude this build and record that it was unsuccessful.
◆ messageReporter
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/SubContext.java