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

Generates code from your model files on save. More...

Inherits AbstractGenerator.

Public Member Functions

void doGenerate (Resource resource, IFileSystemAccess2 fsa, IGeneratorContext context)
boolean errorsOccurred ()
 Return true if errors occurred in the last call to doGenerate().

Static Public Member Functions

static FileConfig createFileConfig (Resource resource, Path srcGenBasePath, boolean useHierarchicalBin)
 Create a target-specific FileConfig object.

Protected Attributes

boolean generatorErrorsOccurred = false

Detailed Description

Generates code from your model files on save.

Member Function Documentation

◆ createFileConfig()

FileConfig org.lflang.generator.LFGenerator.createFileConfig ( Resource resource,
Path srcGenBasePath,
boolean useHierarchicalBin )
static

Create a target-specific FileConfig object.

Returns
A FileConfig object in Kotlin if the class can be found.
Exceptions
RuntimeExceptionIf the file config could not be created properly

◆ doGenerate()

void org.lflang.generator.LFGenerator.doGenerate ( Resource resource,
IFileSystemAccess2 fsa,
IGeneratorContext context )

◆ errorsOccurred()

boolean org.lflang.generator.LFGenerator.errorsOccurred ( )

Return true if errors occurred in the last call to doGenerate().

Member Data Documentation

◆ generatorErrorsOccurred

boolean org.lflang.generator.LFGenerator.generatorErrorsOccurred = false
protected

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/LFGenerator.java