|
| static void | accommodatePhysicalActionsIfPresent (Set< Resource > resources, boolean setsKeepAliveOptionAutomatically, TargetConfig targetConfig, MessageReporter messageReporter) |
| | Look for physical actions in 'resource'.
|
| static boolean | canGenerate (Boolean errorsOccurred, Instantiation mainDef, MessageReporter messageReporter, LFGeneratorContext context) |
| | Check whether code can be generated; report any problems and inform the context accordingly.
|
| static< T > Iterable< T > | findAll (Resource resource, Class< T > nodeType) |
| | Return all instances of eObjectType in resource.
|
| static TargetDecl | findTargetDecl (Resource resource) |
| | Return the target declaration found in the given resource.
|
| static Set< Resource > | getResources (Iterable< Reactor > reactors) |
| | Return the resources that provide the given reactors and their ancestors.
|
| static boolean | isHostWindows () |
| | Return whether the operating system is Windows.
|
| static void | refreshProject (Resource resource, Mode compilerMode) |
| | If the mode is Mode.EPOCH (the code generator is running in an Eclipse IDE), then refresh the project.
|
A helper class with functions that may be useful for code generators.
This is created to ease our transition from Xtend and possibly Eclipse. All functions in this class should instead be in GeneratorUtils.kt, but Eclipse cannot handle Kotlin files.