io.sarl.lang.codebuilder.builders
Class SarlSkillBuilderImpl
All Superinterfaces:
ISarlSkillBuilder
class SarlSkillBuilderImpl
extends AbstractBuilder
implements ISarlSkillBuilder
Builder of a Sarl SarlSkill.
Property Summary
Modifier and type Property and description
SarlSkill sarlSkill
Replies the generated SarlSkill.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlActionBuilder addDefSarlAction(String)
Create a SarlAction.
void addImplements(String)
Add an implemented type.
void addModifier(String)
Add a modifier.
ISarlActionBuilder addOverrideSarlAction(String)
Create a SarlAction.
ISarlActionBuilder addSarlAction(String)
Create a SarlAction
ISarlAnnotationTypeBuilder addSarlAnnotationType(String)
Create a SarlAnnotationType.
ISarlBehaviorUnitBuilder addSarlBehaviorUnit(String)
Create a SarlBehaviorUnit.
void addSarlCapacityUses(String*)
Create a SarlCapacityUses.
ISarlClassBuilder addSarlClass(String)
Create a SarlClass.
ISarlConstructorBuilder addSarlConstructor
Create a SarlConstructor.
ISarlEnumerationBuilder addSarlEnumeration(String)
Create a SarlEnumeration.
ISarlFieldBuilder addSarlField(String)
Create a SarlField
ISarlInterfaceBuilder addSarlInterface(String)
Create a SarlInterface.
void addSarlRequiredCapacity(String*)
Create a SarlRequiredCapacity.
ISarlFieldBuilder addValSarlField(String)
Create a SarlField.
ISarlFieldBuilder addVarSarlField(String)
Create a SarlField.
void eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the SarlSkill is attached.
SarlSkill getSarlSkill
Replies the generated SarlSkill.
void setDocumentation(String)
Change the documentation of the element.
void setExtends(String)
Change the super type.
java.lang.String toString
Property Details
sarlSkill
val sarlSkill : SarlSkill
Replies the generated SarlSkill.

This property is an alias for the action: getSarlSkill

Constructor Details
new
new
Action Details
addDefSarlAction(String)
def addDefSarlAction(String) : ISarlActionBuilder
Create a SarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
addImplements(String)
def addImplements(String)
Add an implemented type.
Parameters:
type - the qualified name of the implemented type.
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addOverrideSarlAction(String)
def addOverrideSarlAction(String) : ISarlActionBuilder
Create a SarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
addSarlAction(String)
def addSarlAction(String) : ISarlActionBuilder
Create a SarlAction. *

This function is equivalent to #addDefSarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
addSarlAnnotationType(String)
def addSarlAnnotationType(String) : ISarlAnnotationTypeBuilder
Create a SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType.
Returns:
the builder.
addSarlBehaviorUnit(String)
def addSarlBehaviorUnit(String) : ISarlBehaviorUnitBuilder
Create a SarlBehaviorUnit.
Parameters:
name - the type of the SarlBehaviorUnit.
Returns:
the builder.
addSarlCapacityUses(String*)
def addSarlCapacityUses(String*)
Create a SarlCapacityUses.
Parameters:
name - the types referenced by the SarlCapacityUses.
addSarlClass(String)
def addSarlClass(String) : ISarlClassBuilder
Create a SarlClass.
Parameters:
name - the name of the SarlClass.
Returns:
the builder.
addSarlConstructor
def addSarlConstructor : ISarlConstructorBuilder
Create a SarlConstructor.
Returns:
the builder.
addSarlEnumeration(String)
def addSarlEnumeration(String) : ISarlEnumerationBuilder
Create a SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration.
Returns:
the builder.
addSarlField(String)
def addSarlField(String) : ISarlFieldBuilder
Create a SarlField. *

This function is equivalent to #addVarSarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
addSarlInterface(String)
def addSarlInterface(String) : ISarlInterfaceBuilder
Create a SarlInterface.
Parameters:
name - the name of the SarlInterface.
Returns:
the builder.
addSarlRequiredCapacity(String*)
def addSarlRequiredCapacity(String*)
Create a SarlRequiredCapacity.
Parameters:
name - the types referenced by the SarlRequiredCapacity.
addValSarlField(String)
def addValSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
addVarSarlField(String)
def addVarSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
eInit(SarlScript,String,IJvmTypeProvider)
def eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the SarlSkill is attached.
getSarlSkill
def getSarlSkill : SarlSkill
Replies the generated SarlSkill.
setDocumentation(String)
def setDocumentation(String)
Change the documentation of the element.

The documentation will be displayed just before the element.
Parameters:
doc - the documentation.
setExtends(String)
def setExtends(String)
Change the super type.
Parameters:
superType - the qualified name of the super type, or null if the default type.
toString
def toString : java.lang.String