io.sarl.lang.extralanguage.compiler
Class ExtraLanguageGeneratorSupport
All Superinterfaces:
org.eclipse.xtext.generator.IGenerator, org.eclipse.xtext.generator.IGenerator2
class ExtraLanguageGeneratorSupport
extends java.lang.Object
implements org.eclipse.xtext.generator.IGenerator, org.eclipse.xtext.generator.IGenerator2
The generator from SARL to the default target language and an extra target language.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.6
Property Summary
Modifier and type Property and description
IExtraLanguageGeneratorProvider extraGeneratorProvider
Replies the provider of the extra generators.
java.util.logging.Logger logger
Replies the logger.
org.eclipse.xtext.generator.IGenerator2 mainGenerator
Change the main generator that should be usedd dfor generating files from SARL resource.
Field Summary
Modifier and type Field and description
public static val java.lang.String MAIN_GENERATOR_NAME
Name of the injected element for the main generator.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void afterGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
void beforeGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
final void doGenerate(Resource,IFileSystemAccess)
void doGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
final void generate(Resource,IFileSystemAccess2,IGeneratorContext)
Generate the file(s) from the input resource.
IExtraLanguageGeneratorProvider getExtraGeneratorProvider
Replies the provider of the extra generators.
java.util.logging.Logger getLogger
Replies the logger.
org.eclipse.xtext.generator.IGenerator2 getMainGenerator
Change the main generator that should be usedd dfor generating files from SARL resource.
void setExtraGeneratorProvider(IExtraLanguageGeneratorProvider)
Change the provider of the extra generators.
void setLogger(Logger)
Change the logger.
void setMainGenerator(IGenerator2)
Change the main generator that should be used for generating files from SARL resource.
Property Details
extraGeneratorProvider
var extraGeneratorProvider : IExtraLanguageGeneratorProvider
Replies the provider of the extra generators.

This property is an alias for the action: getExtraGeneratorProvider

Returns:
the provider.
logger
var logger : java.util.logging.Logger
Replies the logger.

This property is an alias for the action: getLogger

Returns:
the logger.
mainGenerator
var mainGenerator : org.eclipse.xtext.generator.IGenerator2
Change the main generator that should be usedd dfor generating files from SARL resource.

This property is an alias for the action: getMainGenerator

Returns:
the generator.
Field Details
MAIN_GENERATOR_NAME
public static val MAIN_GENERATOR_NAME : java.lang.String = "io.sarl.lang.generator.extra.MAIN"
Name of the injected element for the main generator.
Constructor Details
new
new
Action Details
afterGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
def afterGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
beforeGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
def beforeGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
doGenerate(Resource,IFileSystemAccess)
def doGenerate(Resource,IFileSystemAccess)
doGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
def doGenerate(Resource,IFileSystemAccess2,IGeneratorContext)
generate(Resource,IFileSystemAccess2,IGeneratorContext)
def generate(Resource,IFileSystemAccess2,IGeneratorContext)
Generate the file(s) from the input resource.
Parameters:
input - the input resource.
fsa - the file system access.
context - the generator context.
getExtraGeneratorProvider
def getExtraGeneratorProvider : IExtraLanguageGeneratorProvider
Replies the provider of the extra generators.
Returns:
the provider.
getLogger
def getLogger : java.util.logging.Logger
Replies the logger.
Returns:
the logger.
getMainGenerator
def getMainGenerator : org.eclipse.xtext.generator.IGenerator2
Change the main generator that should be usedd dfor generating files from SARL resource.
Returns:
the generator.
setExtraGeneratorProvider(IExtraLanguageGeneratorProvider)
def setExtraGeneratorProvider(IExtraLanguageGeneratorProvider)
Change the provider of the extra generators.
Parameters:
provider - the provider.
setLogger(Logger)
def setLogger(Logger)
Change the logger.
Parameters:
logger - the logger.
setMainGenerator(IGenerator2)
def setMainGenerator(IGenerator2)
Change the main generator that should be used for generating files from SARL resource.
Parameters:
generator - the generator.