io.sarl.lang.compiler
Class SARLJvmGenerator
All Superinterfaces:
org.eclipse.xtext.generator.IGenerator, org.eclipse.xtext.generator.IGenerator2
class SARLJvmGenerator
extends java.lang.Object
SARL-specific generator.

This generator:
  • forces the JvmOperation to be annotated with @Pure dynamically.
  • Generate static initialization block from a static constructor;
  • Generate the files into the standard output folder or the unit test output folder.

The roles of the different generation tools are:
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.4
Nested Type Summary
Modifier and type Type and description
class SARLJvmGenerator.NoDefaultPackageImportManager
Import manager that is skipping the imports for types in default package.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
protected org.eclipse.xtext.xbase.compiler.output.ITreeAppendable _generateMember(JvmOperation,ITreeAppendable,GeneratorConfig)
protected void _internalDoGenerate(JvmDeclaredType,IFileSystemAccess)
protected org.eclipse.xtext.xbase.compiler.ImportManager createImportManager(JvmDeclaredType)
protected org.eclipse.xtext.xbase.compiler.output.ITreeAppendable generateStaticConstructor(JvmOperation,ITreeAppendable,GeneratorConfig)
Generate a static constructor from the given Jvm constructor.
Constructor Details
new
new
Action Details
_generateMember(JvmOperation,ITreeAppendable,GeneratorConfig)
protected def _generateMember(JvmOperation,ITreeAppendable,GeneratorConfig) : org.eclipse.xtext.xbase.compiler.output.ITreeAppendable
_internalDoGenerate(JvmDeclaredType,IFileSystemAccess)
protected def _internalDoGenerate(JvmDeclaredType,IFileSystemAccess)
createImportManager(JvmDeclaredType)
protected def createImportManager(JvmDeclaredType) : org.eclipse.xtext.xbase.compiler.ImportManager
generateStaticConstructor(JvmOperation,ITreeAppendable,GeneratorConfig)
protected def generateStaticConstructor(JvmOperation,ITreeAppendable,GeneratorConfig) : org.eclipse.xtext.xbase.compiler.output.ITreeAppendable
Generate a static constructor from the given Jvm constructor.
Parameters:
it - the container of the code.
appendable - the output.
config - the generation configuration.
Returns:
the appendable.