• Prev Type
  • Next Type

io.sarl.lang.codebuilder
Class CodeBuilderFactory
class CodeBuilderFactory
extends java.lang.Object
Creates ICodeBuilder to insert SARL code snippets.
Property Summary
Modifier and type Property and description
protected java.lang.String fooMemberName
Replies the name of the foo type member.
protected java.lang.String fooPackageName
Replies the name of the foo package.
protected java.lang.String fooTypeName
Replies the name of the foo type.
protected com.google.inject.Injector injector
Replies the injector.
protected org.eclipse.xtext.resource.IResourceFactory resourceFactory
Replies the resource factory.
java.lang.String scriptFileExtension
Replies the script's file extension.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
SarlActionSourceAppender buildDefSarlAction(String,Resource)
Create the appender for a Sarl SarlAction.
SarlActionSourceAppender buildDefSarlAction(String,ResourceSet)
Create the appender for a Sarl SarlAction.
SarlActionSourceAppender buildOverrideSarlAction(String,Resource)
Create the appender for a Sarl SarlAction.
SarlActionSourceAppender buildOverrideSarlAction(String,ResourceSet)
Create the appender for a Sarl SarlAction.
SarlAgentSourceAppender buildSarlAgent(String,Resource)
Create the appender for a Sarl SarlAgent.
SarlAgentSourceAppender buildSarlAgent(String,ResourceSet)
Create the appender for a Sarl SarlAgent.
SarlAnnotationTypeSourceAppender buildSarlAnnotationType(String,Resource)
Create the appender for a Sarl SarlAnnotationType.
SarlAnnotationTypeSourceAppender buildSarlAnnotationType(String,ResourceSet)
Create the appender for a Sarl SarlAnnotationType.
SarlArtifactSourceAppender buildSarlArtifact(String,Resource)
Create the appender for a Sarl SarlArtifact.
SarlArtifactSourceAppender buildSarlArtifact(String,ResourceSet)
Create the appender for a Sarl SarlArtifact.
SarlBehaviorSourceAppender buildSarlBehavior(String,Resource)
Create the appender for a Sarl SarlBehavior.
SarlBehaviorSourceAppender buildSarlBehavior(String,ResourceSet)
Create the appender for a Sarl SarlBehavior.
SarlBehaviorUnitSourceAppender buildSarlBehaviorUnit(String,Resource)
Create the appender for a Sarl SarlBehaviorUnit.
SarlBehaviorUnitSourceAppender buildSarlBehaviorUnit(String,ResourceSet)
Create the appender for a Sarl SarlBehaviorUnit.
SarlCapacitySourceAppender buildSarlCapacity(String,Resource)
Create the appender for a Sarl SarlCapacity.
SarlCapacitySourceAppender buildSarlCapacity(String,ResourceSet)
Create the appender for a Sarl SarlCapacity.
SarlClassSourceAppender buildSarlClass(String,Resource)
Create the appender for a Sarl SarlClass.
SarlClassSourceAppender buildSarlClass(String,ResourceSet)
Create the appender for a Sarl SarlClass.
SarlConstructorSourceAppender buildSarlConstructor(Resource)
Create the appender for a Sarl constructor.
SarlConstructorSourceAppender buildSarlConstructor(ResourceSet)
Create the appender for a Sarl constructor.
SarlEnumerationSourceAppender buildSarlEnumeration(String,Resource)
Create the appender for a Sarl SarlEnumeration.
SarlEnumerationSourceAppender buildSarlEnumeration(String,ResourceSet)
Create the appender for a Sarl SarlEnumeration.
SarlEnumLiteralSourceAppender buildSarlEnumLiteral(String,Resource)
Create the appender for a Sarl SarlEnumLiteral.
SarlEnumLiteralSourceAppender buildSarlEnumLiteral(String,ResourceSet)
Create the appender for a Sarl SarlEnumLiteral.
SarlEventSourceAppender buildSarlEvent(String,Resource)
Create the appender for a Sarl SarlEvent.
SarlEventSourceAppender buildSarlEvent(String,ResourceSet)
Create the appender for a Sarl SarlEvent.
SarlInterfaceSourceAppender buildSarlInterface(String,Resource)
Create the appender for a Sarl SarlInterface.
SarlInterfaceSourceAppender buildSarlInterface(String,ResourceSet)
Create the appender for a Sarl SarlInterface.
SarlSkillSourceAppender buildSarlSkill(String,Resource)
Create the appender for a Sarl SarlSkill.
SarlSkillSourceAppender buildSarlSkill(String,ResourceSet)
Create the appender for a Sarl SarlSkill.
SarlSpaceSourceAppender buildSarlSpace(String,Resource)
Create the appender for a Sarl SarlSpace.
SarlSpaceSourceAppender buildSarlSpace(String,ResourceSet)
Create the appender for a Sarl SarlSpace.
ScriptSourceAppender buildScript(String,Resource)
Create the appender for a Sarl script.
ScriptSourceAppender buildScript(String,ResourceSet)
Create the appender for a Sarl script.
ScriptSourceAppender buildScript(String,IJvmTypeProvider)
Create the appender for a Sarl script.
ScriptSourceAppender buildScript(String,Resource,IJvmTypeProvider)
Create the appender for a Sarl script.
SarlFieldSourceAppender buildValSarlField(String,Resource)
Create the appender for a Sarl SarlField.
SarlFieldSourceAppender buildValSarlField(String,ResourceSet)
Create the appender for a Sarl SarlField.
SarlFieldSourceAppender buildVarSarlField(String,Resource)
Create the appender for a Sarl SarlField.
SarlFieldSourceAppender buildVarSarlField(String,ResourceSet)
Create the appender for a Sarl SarlField.
BlockExpressionSourceAppender buildXBlockExpression(Resource)
Create the appender for a Sarl block expression.
BlockExpressionSourceAppender buildXBlockExpression(ResourceSet)
Create the appender for a Sarl block expression.
ExpressionSourceAppender buildXExpression(Resource)
Create the appender for a Sarl XExpression.
ExpressionSourceAppender buildXExpression(ResourceSet)
Create the appender for a Sarl XExpression.
protected org.eclipse.emf.common.util.URI computeUnusedUri(ResourceSet)
Compute a unused URI for a synthetic resource.
ISarlActionBuilder createDefSarlAction(String,Resource)
Create the factory for a Sarl SarlAction.
ISarlActionBuilder createDefSarlAction(String,ResourceSet)
Create the factory for a Sarl SarlAction.
ISarlActionBuilder createOverrideSarlAction(String,Resource)
Create the factory for a Sarl SarlAction.
ISarlActionBuilder createOverrideSarlAction(String,ResourceSet)
Create the factory for a Sarl SarlAction.
static com.google.inject.Injector createOverridingInjector(Injector,Module)
Create an injector that override the given injectors with the modules.
protected org.eclipse.emf.ecore.resource.Resource createResource(ResourceSet)
Create a synthetic resource.
ISarlAgentBuilder createSarlAgent(String,Resource)
Create the factory for a Sarl SarlAgent.
ISarlAgentBuilder createSarlAgent(String,ResourceSet)
Create the factory for a Sarl SarlAgent.
ISarlAnnotationTypeBuilder createSarlAnnotationType(String,Resource)
Create the factory for a Sarl SarlAnnotationType.
ISarlAnnotationTypeBuilder createSarlAnnotationType(String,ResourceSet)
Create the factory for a Sarl SarlAnnotationType.
ISarlArtifactBuilder createSarlArtifact(String,Resource)
Create the factory for a Sarl SarlArtifact.
ISarlArtifactBuilder createSarlArtifact(String,ResourceSet)
Create the factory for a Sarl SarlArtifact.
ISarlBehaviorBuilder createSarlBehavior(String,Resource)
Create the factory for a Sarl SarlBehavior.
ISarlBehaviorBuilder createSarlBehavior(String,ResourceSet)
Create the factory for a Sarl SarlBehavior.
ISarlBehaviorUnitBuilder createSarlBehaviorUnit(String,Resource)
Create the factory for a Sarl SarlBehaviorUnit.
ISarlBehaviorUnitBuilder createSarlBehaviorUnit(String,ResourceSet)
Create the factory for a Sarl SarlBehaviorUnit.
ISarlCapacityBuilder createSarlCapacity(String,Resource)
Create the factory for a Sarl SarlCapacity.
ISarlCapacityBuilder createSarlCapacity(String,ResourceSet)
Create the factory for a Sarl SarlCapacity.
ISarlClassBuilder createSarlClass(String,Resource)
Create the factory for a Sarl SarlClass.
ISarlClassBuilder createSarlClass(String,ResourceSet)
Create the factory for a Sarl SarlClass.
ISarlConstructorBuilder createSarlConstructor(Resource)
Create the factory for a Sarl constructor.
ISarlConstructorBuilder createSarlConstructor(ResourceSet)
Create the factory for a Sarl constructor.
ISarlEnumerationBuilder createSarlEnumeration(String,Resource)
Create the factory for a Sarl SarlEnumeration.
ISarlEnumerationBuilder createSarlEnumeration(String,ResourceSet)
Create the factory for a Sarl SarlEnumeration.
ISarlEnumLiteralBuilder createSarlEnumLiteral(String,Resource)
Create the factory for a Sarl SarlEnumLiteral.
ISarlEnumLiteralBuilder createSarlEnumLiteral(String,ResourceSet)
Create the factory for a Sarl SarlEnumLiteral.
ISarlEventBuilder createSarlEvent(String,Resource)
Create the factory for a Sarl SarlEvent.
ISarlEventBuilder createSarlEvent(String,ResourceSet)
Create the factory for a Sarl SarlEvent.
ISarlInterfaceBuilder createSarlInterface(String,Resource)
Create the factory for a Sarl SarlInterface.
ISarlInterfaceBuilder createSarlInterface(String,ResourceSet)
Create the factory for a Sarl SarlInterface.
ISarlSkillBuilder createSarlSkill(String,Resource)
Create the factory for a Sarl SarlSkill.
ISarlSkillBuilder createSarlSkill(String,ResourceSet)
Create the factory for a Sarl SarlSkill.
ISarlSpaceBuilder createSarlSpace(String,Resource)
Create the factory for a Sarl SarlSpace.
ISarlSpaceBuilder createSarlSpace(String,ResourceSet)
Create the factory for a Sarl SarlSpace.
IScriptBuilder createScript(String,Resource)
Create the factory for a Sarl script.
IScriptBuilder createScript(String,ResourceSet)
Create the factory for a Sarl script.
IScriptBuilder createScript(String,IJvmTypeProvider)
Create the factory for a Sarl script.
IScriptBuilder createScript(String,Resource,IJvmTypeProvider)
Create the factory for a Sarl script.
ISarlFieldBuilder createValSarlField(String,Resource)
Create the factory for a Sarl SarlField.
ISarlFieldBuilder createValSarlField(String,ResourceSet)
Create the factory for a Sarl SarlField.
ISarlFieldBuilder createVarSarlField(String,Resource)
Create the factory for a Sarl SarlField.
ISarlFieldBuilder createVarSarlField(String,ResourceSet)
Create the factory for a Sarl SarlField.
IBlockExpressionBuilder createXBlockExpression(Resource)
Create the factory for a Sarl block expression.
IBlockExpressionBuilder createXBlockExpression(ResourceSet)
Create the factory for a Sarl block expression.
IExpressionBuilder createXExpression(Resource)
Create the factory for a Sarl XExpression.
IExpressionBuilder createXExpression(ResourceSet)
Create the factory for a Sarl XExpression.
protected java.lang.String getFooMemberName
Replies the name of the foo type member.
protected java.lang.String getFooPackageName
Replies the name of the foo package.
protected java.lang.String getFooTypeName
Replies the name of the foo type.
protected com.google.inject.Injector getInjector
Replies the injector.
protected javax.inject.Provider<T> getProvider(Class<T>)
Replies a provider for the given type.
protected org.eclipse.xtext.resource.IResourceFactory getResourceFactory
Replies the resource factory.
java.lang.String getScriptFileExtension
Replies the script's file extension.
void setFileExtensions(String)
Property Details
fooMemberName
protected val fooMemberName : java.lang.String
Replies the name of the foo type member.

This property is an alias for the action: getFooMemberName

Returns:
the name of the foo type member.
fooPackageName
protected val fooPackageName : java.lang.String
Replies the name of the foo package.

This property is an alias for the action: getFooPackageName

Returns:
the name of the foo package.
fooTypeName
protected val fooTypeName : java.lang.String
Replies the name of the foo type.

This property is an alias for the action: getFooTypeName

Returns:
the name of the foo type.
injector
protected val injector : com.google.inject.Injector
Replies the injector.

This property is an alias for the action: getInjector

Returns:
the injector.
resourceFactory
protected val resourceFactory : org.eclipse.xtext.resource.IResourceFactory
Replies the resource factory.

This property is an alias for the action: getResourceFactory

Returns:
the resource factory.
scriptFileExtension
val scriptFileExtension : java.lang.String
Replies the script's file extension.

This property is an alias for the action: getScriptFileExtension

Constructor Details
new
new
Action Details
buildDefSarlAction(String,Resource)
def buildDefSarlAction(String,Resource) : SarlActionSourceAppender
Create the appender for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildDefSarlAction(String,ResourceSet)
def buildDefSarlAction(String,ResourceSet) : SarlActionSourceAppender
Create the appender for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildOverrideSarlAction(String,Resource)
def buildOverrideSarlAction(String,Resource) : SarlActionSourceAppender
Create the appender for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildOverrideSarlAction(String,ResourceSet)
def buildOverrideSarlAction(String,ResourceSet) : SarlActionSourceAppender
Create the appender for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlAgent(String,Resource)
def buildSarlAgent(String,Resource) : SarlAgentSourceAppender
Create the appender for a Sarl SarlAgent.
Parameters:
name - the name of the SarlAgent
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlAgent(String,ResourceSet)
def buildSarlAgent(String,ResourceSet) : SarlAgentSourceAppender
Create the appender for a Sarl SarlAgent.
Parameters:
name - the name of the SarlAgent
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlAnnotationType(String,Resource)
def buildSarlAnnotationType(String,Resource) : SarlAnnotationTypeSourceAppender
Create the appender for a Sarl SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlAnnotationType(String,ResourceSet)
def buildSarlAnnotationType(String,ResourceSet) : SarlAnnotationTypeSourceAppender
Create the appender for a Sarl SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlArtifact(String,Resource)
def buildSarlArtifact(String,Resource) : SarlArtifactSourceAppender
Create the appender for a Sarl SarlArtifact.
Parameters:
name - the name of the SarlArtifact
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlArtifact(String,ResourceSet)
def buildSarlArtifact(String,ResourceSet) : SarlArtifactSourceAppender
Create the appender for a Sarl SarlArtifact.
Parameters:
name - the name of the SarlArtifact
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlBehavior(String,Resource)
def buildSarlBehavior(String,Resource) : SarlBehaviorSourceAppender
Create the appender for a Sarl SarlBehavior.
Parameters:
name - the name of the SarlBehavior
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlBehavior(String,ResourceSet)
def buildSarlBehavior(String,ResourceSet) : SarlBehaviorSourceAppender
Create the appender for a Sarl SarlBehavior.
Parameters:
name - the name of the SarlBehavior
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlBehaviorUnit(String,Resource)
def buildSarlBehaviorUnit(String,Resource) : SarlBehaviorUnitSourceAppender
Create the appender for a Sarl SarlBehaviorUnit.
Parameters:
name - the name of the SarlBehaviorUnit
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlBehaviorUnit(String,ResourceSet)
def buildSarlBehaviorUnit(String,ResourceSet) : SarlBehaviorUnitSourceAppender
Create the appender for a Sarl SarlBehaviorUnit.
Parameters:
name - the name of the SarlBehaviorUnit
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlCapacity(String,Resource)
def buildSarlCapacity(String,Resource) : SarlCapacitySourceAppender
Create the appender for a Sarl SarlCapacity.
Parameters:
name - the name of the SarlCapacity
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlCapacity(String,ResourceSet)
def buildSarlCapacity(String,ResourceSet) : SarlCapacitySourceAppender
Create the appender for a Sarl SarlCapacity.
Parameters:
name - the name of the SarlCapacity
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlClass(String,Resource)
def buildSarlClass(String,Resource) : SarlClassSourceAppender
Create the appender for a Sarl SarlClass.
Parameters:
name - the name of the SarlClass
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlClass(String,ResourceSet)
def buildSarlClass(String,ResourceSet) : SarlClassSourceAppender
Create the appender for a Sarl SarlClass.
Parameters:
name - the name of the SarlClass
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlConstructor(Resource)
def buildSarlConstructor(Resource) : SarlConstructorSourceAppender
Create the appender for a Sarl constructor.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlConstructor(ResourceSet)
def buildSarlConstructor(ResourceSet) : SarlConstructorSourceAppender
Create the appender for a Sarl constructor.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEnumeration(String,Resource)
def buildSarlEnumeration(String,Resource) : SarlEnumerationSourceAppender
Create the appender for a Sarl SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEnumeration(String,ResourceSet)
def buildSarlEnumeration(String,ResourceSet) : SarlEnumerationSourceAppender
Create the appender for a Sarl SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEnumLiteral(String,Resource)
def buildSarlEnumLiteral(String,Resource) : SarlEnumLiteralSourceAppender
Create the appender for a Sarl SarlEnumLiteral.
Parameters:
name - the name of the SarlEnumLiteral
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEnumLiteral(String,ResourceSet)
def buildSarlEnumLiteral(String,ResourceSet) : SarlEnumLiteralSourceAppender
Create the appender for a Sarl SarlEnumLiteral.
Parameters:
name - the name of the SarlEnumLiteral
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEvent(String,Resource)
def buildSarlEvent(String,Resource) : SarlEventSourceAppender
Create the appender for a Sarl SarlEvent.
Parameters:
name - the name of the SarlEvent
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlEvent(String,ResourceSet)
def buildSarlEvent(String,ResourceSet) : SarlEventSourceAppender
Create the appender for a Sarl SarlEvent.
Parameters:
name - the name of the SarlEvent
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlInterface(String,Resource)
def buildSarlInterface(String,Resource) : SarlInterfaceSourceAppender
Create the appender for a Sarl SarlInterface.
Parameters:
name - the name of the SarlInterface
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlInterface(String,ResourceSet)
def buildSarlInterface(String,ResourceSet) : SarlInterfaceSourceAppender
Create the appender for a Sarl SarlInterface.
Parameters:
name - the name of the SarlInterface
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlSkill(String,Resource)
def buildSarlSkill(String,Resource) : SarlSkillSourceAppender
Create the appender for a Sarl SarlSkill.
Parameters:
name - the name of the SarlSkill
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlSkill(String,ResourceSet)
def buildSarlSkill(String,ResourceSet) : SarlSkillSourceAppender
Create the appender for a Sarl SarlSkill.
Parameters:
name - the name of the SarlSkill
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlSpace(String,Resource)
def buildSarlSpace(String,Resource) : SarlSpaceSourceAppender
Create the appender for a Sarl SarlSpace.
Parameters:
name - the name of the SarlSpace
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildSarlSpace(String,ResourceSet)
def buildSarlSpace(String,ResourceSet) : SarlSpaceSourceAppender
Create the appender for a Sarl SarlSpace.
Parameters:
name - the name of the SarlSpace
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildScript(String,Resource)
def buildScript(String,Resource) : ScriptSourceAppender
Create the appender for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resource - the resource in which the script is created.
Returns:
the appender.
buildScript(String,ResourceSet)
def buildScript(String,ResourceSet) : ScriptSourceAppender
Create the appender for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resourceSet - the resource set in which the script is created.
Returns:
the appender.
buildScript(String,IJvmTypeProvider)
def buildScript(String,IJvmTypeProvider) : ScriptSourceAppender
Create the appender for a Sarl script.

The resource set is provided by the context.
Parameters:
packageName - the name of the package of the script.
context - the context for type resolution.
Returns:
the appender.
buildScript(String,Resource,IJvmTypeProvider)
def buildScript(String,Resource,IJvmTypeProvider) : ScriptSourceAppender
Create the appender for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resource - the resource in which the script is created.
context - the context for type resolution.
Returns:
the appender.
buildValSarlField(String,Resource)
def buildValSarlField(String,Resource) : SarlFieldSourceAppender
Create the appender for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildValSarlField(String,ResourceSet)
def buildValSarlField(String,ResourceSet) : SarlFieldSourceAppender
Create the appender for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildVarSarlField(String,Resource)
def buildVarSarlField(String,Resource) : SarlFieldSourceAppender
Create the appender for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildVarSarlField(String,ResourceSet)
def buildVarSarlField(String,ResourceSet) : SarlFieldSourceAppender
Create the appender for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildXBlockExpression(Resource)
def buildXBlockExpression(Resource) : BlockExpressionSourceAppender
Create the appender for a Sarl block expression.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildXBlockExpression(ResourceSet)
def buildXBlockExpression(ResourceSet) : BlockExpressionSourceAppender
Create the appender for a Sarl block expression.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildXExpression(Resource)
def buildXExpression(Resource) : ExpressionSourceAppender
Create the appender for a Sarl XExpression.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
buildXExpression(ResourceSet)
def buildXExpression(ResourceSet) : ExpressionSourceAppender
Create the appender for a Sarl XExpression.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the appender.
computeUnusedUri(ResourceSet)
protected def computeUnusedUri(ResourceSet) : org.eclipse.emf.common.util.URI
Compute a unused URI for a synthetic resource.
Parameters:
resourceSet - the resource set in which the resource should be located.
Returns:
the uri.
createDefSarlAction(String,Resource)
def createDefSarlAction(String,Resource) : ISarlActionBuilder
Create the factory for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createDefSarlAction(String,ResourceSet)
def createDefSarlAction(String,ResourceSet) : ISarlActionBuilder
Create the factory for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createOverrideSarlAction(String,Resource)
def createOverrideSarlAction(String,Resource) : ISarlActionBuilder
Create the factory for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createOverrideSarlAction(String,ResourceSet)
def createOverrideSarlAction(String,ResourceSet) : ISarlActionBuilder
Create the factory for a Sarl SarlAction.
Parameters:
name - the name of the SarlAction
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createOverridingInjector(Injector,Module)
def createOverridingInjector(Injector,Module) : com.google.inject.Injector
Create an injector that override the given injectors with the modules.
Parameters:
originalInjector - the original injector.
module - the overriding module.
Returns:
the new injector.
createResource(ResourceSet)
protected def createResource(ResourceSet) : org.eclipse.emf.ecore.resource.Resource
Create a synthetic resource.
Parameters:
resourceSet - the resourceSet.
Returns:
the resource.
createSarlAgent(String,Resource)
def createSarlAgent(String,Resource) : ISarlAgentBuilder
Create the factory for a Sarl SarlAgent.
Parameters:
name - the name of the SarlAgent
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlAgent(String,ResourceSet)
def createSarlAgent(String,ResourceSet) : ISarlAgentBuilder
Create the factory for a Sarl SarlAgent.
Parameters:
name - the name of the SarlAgent
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlAnnotationType(String,Resource)
def createSarlAnnotationType(String,Resource) : ISarlAnnotationTypeBuilder
Create the factory for a Sarl SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlAnnotationType(String,ResourceSet)
def createSarlAnnotationType(String,ResourceSet) : ISarlAnnotationTypeBuilder
Create the factory for a Sarl SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlArtifact(String,Resource)
def createSarlArtifact(String,Resource) : ISarlArtifactBuilder
Create the factory for a Sarl SarlArtifact.
Parameters:
name - the name of the SarlArtifact
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlArtifact(String,ResourceSet)
def createSarlArtifact(String,ResourceSet) : ISarlArtifactBuilder
Create the factory for a Sarl SarlArtifact.
Parameters:
name - the name of the SarlArtifact
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlBehavior(String,Resource)
def createSarlBehavior(String,Resource) : ISarlBehaviorBuilder
Create the factory for a Sarl SarlBehavior.
Parameters:
name - the name of the SarlBehavior
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlBehavior(String,ResourceSet)
def createSarlBehavior(String,ResourceSet) : ISarlBehaviorBuilder
Create the factory for a Sarl SarlBehavior.
Parameters:
name - the name of the SarlBehavior
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlBehaviorUnit(String,Resource)
def createSarlBehaviorUnit(String,Resource) : ISarlBehaviorUnitBuilder
Create the factory for a Sarl SarlBehaviorUnit.
Parameters:
name - the name of the SarlBehaviorUnit
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlBehaviorUnit(String,ResourceSet)
def createSarlBehaviorUnit(String,ResourceSet) : ISarlBehaviorUnitBuilder
Create the factory for a Sarl SarlBehaviorUnit.
Parameters:
name - the name of the SarlBehaviorUnit
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlCapacity(String,Resource)
def createSarlCapacity(String,Resource) : ISarlCapacityBuilder
Create the factory for a Sarl SarlCapacity.
Parameters:
name - the name of the SarlCapacity
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlCapacity(String,ResourceSet)
def createSarlCapacity(String,ResourceSet) : ISarlCapacityBuilder
Create the factory for a Sarl SarlCapacity.
Parameters:
name - the name of the SarlCapacity
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlClass(String,Resource)
def createSarlClass(String,Resource) : ISarlClassBuilder
Create the factory for a Sarl SarlClass.
Parameters:
name - the name of the SarlClass
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlClass(String,ResourceSet)
def createSarlClass(String,ResourceSet) : ISarlClassBuilder
Create the factory for a Sarl SarlClass.
Parameters:
name - the name of the SarlClass
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlConstructor(Resource)
def createSarlConstructor(Resource) : ISarlConstructorBuilder
Create the factory for a Sarl constructor.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlConstructor(ResourceSet)
def createSarlConstructor(ResourceSet) : ISarlConstructorBuilder
Create the factory for a Sarl constructor.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlEnumeration(String,Resource)
def createSarlEnumeration(String,Resource) : ISarlEnumerationBuilder
Create the factory for a Sarl SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlEnumeration(String,ResourceSet)
def createSarlEnumeration(String,ResourceSet) : ISarlEnumerationBuilder
Create the factory for a Sarl SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlEnumLiteral(String,Resource)
def createSarlEnumLiteral(String,Resource) : ISarlEnumLiteralBuilder
Create the factory for a Sarl SarlEnumLiteral.
Parameters:
name - the name of the SarlEnumLiteral
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlEnumLiteral(String,ResourceSet)
def createSarlEnumLiteral(String,ResourceSet) : ISarlEnumLiteralBuilder
Create the factory for a Sarl SarlEnumLiteral.
Parameters:
name - the name of the SarlEnumLiteral
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlEvent(String,Resource)
def createSarlEvent(String,Resource) : ISarlEventBuilder
Create the factory for a Sarl SarlEvent.
Parameters:
name - the name of the SarlEvent
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlEvent(String,ResourceSet)
def createSarlEvent(String,ResourceSet) : ISarlEventBuilder
Create the factory for a Sarl SarlEvent.
Parameters:
name - the name of the SarlEvent
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlInterface(String,Resource)
def createSarlInterface(String,Resource) : ISarlInterfaceBuilder
Create the factory for a Sarl SarlInterface.
Parameters:
name - the name of the SarlInterface
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlInterface(String,ResourceSet)
def createSarlInterface(String,ResourceSet) : ISarlInterfaceBuilder
Create the factory for a Sarl SarlInterface.
Parameters:
name - the name of the SarlInterface
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlSkill(String,Resource)
def createSarlSkill(String,Resource) : ISarlSkillBuilder
Create the factory for a Sarl SarlSkill.
Parameters:
name - the name of the SarlSkill
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlSkill(String,ResourceSet)
def createSarlSkill(String,ResourceSet) : ISarlSkillBuilder
Create the factory for a Sarl SarlSkill.
Parameters:
name - the name of the SarlSkill
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createSarlSpace(String,Resource)
def createSarlSpace(String,Resource) : ISarlSpaceBuilder
Create the factory for a Sarl SarlSpace.
Parameters:
name - the name of the SarlSpace
resource - the resource that must be used for containing the generated element, and resolving types from names.
Returns:
the factory.
createSarlSpace(String,ResourceSet)
def createSarlSpace(String,ResourceSet) : ISarlSpaceBuilder
Create the factory for a Sarl SarlSpace.
Parameters:
name - the name of the SarlSpace
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createScript(String,Resource)
def createScript(String,Resource) : IScriptBuilder
Create the factory for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resource - the resource in which the script is created.
Returns:
the factory.
createScript(String,ResourceSet)
def createScript(String,ResourceSet) : IScriptBuilder
Create the factory for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resourceSet - the resource set in which the script is created.
Returns:
the factory.
createScript(String,IJvmTypeProvider)
def createScript(String,IJvmTypeProvider) : IScriptBuilder
Create the factory for a Sarl script.

The resource set is provided by the context.
Parameters:
packageName - the name of the package of the script.
context - the context for type resolution.
Returns:
the factory.
createScript(String,Resource,IJvmTypeProvider)
def createScript(String,Resource,IJvmTypeProvider) : IScriptBuilder
Create the factory for a Sarl script.
Parameters:
packageName - the name of the package of the script.
resource - the resource in which the script is created.
context - the context for type resolution.
Returns:
the factory.
createValSarlField(String,Resource)
def createValSarlField(String,Resource) : ISarlFieldBuilder
Create the factory for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createValSarlField(String,ResourceSet)
def createValSarlField(String,ResourceSet) : ISarlFieldBuilder
Create the factory for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createVarSarlField(String,Resource)
def createVarSarlField(String,Resource) : ISarlFieldBuilder
Create the factory for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createVarSarlField(String,ResourceSet)
def createVarSarlField(String,ResourceSet) : ISarlFieldBuilder
Create the factory for a Sarl SarlField.
Parameters:
name - the name of the SarlField
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createXBlockExpression(Resource)
def createXBlockExpression(Resource) : IBlockExpressionBuilder
Create the factory for a Sarl block expression.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createXBlockExpression(ResourceSet)
def createXBlockExpression(ResourceSet) : IBlockExpressionBuilder
Create the factory for a Sarl block expression.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createXExpression(Resource)
def createXExpression(Resource) : IExpressionBuilder
Create the factory for a Sarl XExpression.
Parameters:
resource - the resource that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
createXExpression(ResourceSet)
def createXExpression(ResourceSet) : IExpressionBuilder
Create the factory for a Sarl XExpression.
Parameters:
resourceSet - the set of the resources that must be used for containing the generated resource, and resolving types from names.
Returns:
the factory.
getFooMemberName
protected def getFooMemberName : java.lang.String
Replies the name of the foo type member.
Returns:
the name of the foo type member.
getFooPackageName
protected def getFooPackageName : java.lang.String
Replies the name of the foo package.
Returns:
the name of the foo package.
getFooTypeName
protected def getFooTypeName : java.lang.String
Replies the name of the foo type.
Returns:
the name of the foo type.
getInjector
protected def getInjector : com.google.inject.Injector
Replies the injector.
Returns:
the injector.
getProvider(Class<T>)
protected def getProvider(Class<T>) : javax.inject.Provider<T>

with T

Replies a provider for the given type.

The provider uses a local context singleton of the import manager.
Parameters:
type - the type of the object to provide.
Returns:
the provider.
getResourceFactory
protected def getResourceFactory : org.eclipse.xtext.resource.IResourceFactory
Replies the resource factory.
Returns:
the resource factory.
getScriptFileExtension
def getScriptFileExtension : java.lang.String
Replies the script's file extension.
setFileExtensions(String)
def setFileExtensions(String)