io.sarl.lang.codebuilder.builders
Class SarlEventBuilderImpl
All Superinterfaces:
ISarlEventBuilder
class SarlEventBuilderImpl
extends AbstractBuilder
implements ISarlEventBuilder
Builder of a Sarl SarlEvent.
Property Summary
Modifier and type Property and description
SarlEvent sarlEvent
Replies the generated SarlEvent.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void addModifier(String)
Add a modifier.
ISarlConstructorBuilder addSarlConstructor
Create a SarlConstructor.
ISarlFieldBuilder addSarlField(String)
Create a SarlField
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 SarlEvent is attached.
SarlEvent getSarlEvent
Replies the generated SarlEvent.
void setDocumentation(String)
Change the documentation of the element.
void setExtends(String)
Change the super type.
java.lang.String toString
Property Details
sarlEvent
val sarlEvent : SarlEvent
Replies the generated SarlEvent.

This property is an alias for the action: getSarlEvent

Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addSarlConstructor
def addSarlConstructor : ISarlConstructorBuilder
Create a SarlConstructor.
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.
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 SarlEvent is attached.
getSarlEvent
def getSarlEvent : SarlEvent
Replies the generated SarlEvent.
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