io.sarl.lang.codebuilder.builders
Class ScriptBuilderImpl
All Superinterfaces:
IScriptBuilder
class ScriptBuilderImpl
extends AbstractBuilder
implements IScriptBuilder
Property Summary
Modifier and type Property and description
SarlScript script
Replies the Sarl script.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlAgentBuilder addSarlAgent(String)
Create a SarlAgent builder.
ISarlAnnotationTypeBuilder addSarlAnnotationType(String)
Create a SarlAnnotationType builder.
ISarlArtifactBuilder addSarlArtifact(String)
Create a SarlArtifact builder.
ISarlBehaviorBuilder addSarlBehavior(String)
Create a SarlBehavior builder.
ISarlCapacityBuilder addSarlCapacity(String)
Create a SarlCapacity builder.
ISarlClassBuilder addSarlClass(String)
Create a SarlClass builder.
ISarlEnumerationBuilder addSarlEnumeration(String)
Create a SarlEnumeration builder.
ISarlEventBuilder addSarlEvent(String)
Create a SarlEvent builder.
ISarlInterfaceBuilder addSarlInterface(String)
Create a SarlInterface builder.
ISarlProtocolBuilder addSarlProtocol(String)
Create a SarlProtocol builder.
ISarlSkillBuilder addSarlSkill(String)
Create a SarlSkill builder.
ISarlSpaceBuilder addSarlSpace(String)
Create a SarlSpace builder.
void eInit(Resource,String,IJvmTypeProvider)
Create the internal Sarl script.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the script is attached.
void finalizeScript
Finalize the script.
SarlScript getScript
Replies the Sarl script.
boolean isFinalized
Replies if the script was finalized.
java.lang.String toString
Property Details
script
val script : SarlScript
Replies the Sarl script.

This property is an alias for the action: getScript

Constructor Details
new
new
Action Details
addSarlAgent(String)
def addSarlAgent(String) : ISarlAgentBuilder
Create a SarlAgent builder.
Parameters:
name - the name of the SarlAgent.
Returns:
the builder.
addSarlAnnotationType(String)
def addSarlAnnotationType(String) : ISarlAnnotationTypeBuilder
Create a SarlAnnotationType builder.
Parameters:
name - the name of the SarlAnnotationType.
Returns:
the builder.
addSarlArtifact(String)
def addSarlArtifact(String) : ISarlArtifactBuilder
Create a SarlArtifact builder.
Parameters:
name - the name of the SarlArtifact.
Returns:
the builder.
addSarlBehavior(String)
def addSarlBehavior(String) : ISarlBehaviorBuilder
Create a SarlBehavior builder.
Parameters:
name - the name of the SarlBehavior.
Returns:
the builder.
addSarlCapacity(String)
def addSarlCapacity(String) : ISarlCapacityBuilder
Create a SarlCapacity builder.
Parameters:
name - the name of the SarlCapacity.
Returns:
the builder.
addSarlClass(String)
def addSarlClass(String) : ISarlClassBuilder
Create a SarlClass builder.
Parameters:
name - the name of the SarlClass.
Returns:
the builder.
addSarlEnumeration(String)
def addSarlEnumeration(String) : ISarlEnumerationBuilder
Create a SarlEnumeration builder.
Parameters:
name - the name of the SarlEnumeration.
Returns:
the builder.
addSarlEvent(String)
def addSarlEvent(String) : ISarlEventBuilder
Create a SarlEvent builder.
Parameters:
name - the name of the SarlEvent.
Returns:
the builder.
addSarlInterface(String)
def addSarlInterface(String) : ISarlInterfaceBuilder
Create a SarlInterface builder.
Parameters:
name - the name of the SarlInterface.
Returns:
the builder.
addSarlProtocol(String)
def addSarlProtocol(String) : ISarlProtocolBuilder
Create a SarlProtocol builder.
Parameters:
name - the name of the SarlProtocol.
Returns:
the builder.
addSarlSkill(String)
def addSarlSkill(String) : ISarlSkillBuilder
Create a SarlSkill builder.
Parameters:
name - the name of the SarlSkill.
Returns:
the builder.
addSarlSpace(String)
def addSarlSpace(String) : ISarlSpaceBuilder
Create a SarlSpace builder.
Parameters:
name - the name of the SarlSpace.
Returns:
the builder.
eInit(Resource,String,IJvmTypeProvider)
def eInit(Resource,String,IJvmTypeProvider)
Create the internal Sarl script.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the script is attached.
finalizeScript
def finalizeScript
Finalize the script.

The finalization includes:
  • The import section is created.
getScript
def getScript : SarlScript
Replies the Sarl script.
isFinalized
def isFinalized : boolean
Replies if the script was finalized.
toString
def toString : java.lang.String