io.sarl.lang.codebuilder.builders
Class SarlEventBuilderImpl
All Superinterfaces:
ISarlEventBuilder
class SarlEventBuilderImpl
extends AbstractBuilder
implements ISarlEventBuilder
Builder of a Sarl SarlEvent.
See:
"TopElementBuilderFragment.java : appendTo : 410"
Property Summary
Modifier and type Property and description
org.eclipse.xtext.common.types.JvmDeclaredType jvmDeclaredType
Replies the JVM declared type for this generated SarlEvent.
SarlEvent sarlEvent
Replies the generated SarlEvent.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlEventBuilder addModifier(String)
Add a modifier.
ISarlConstructorBuilder addSarlConstructor
Create a SarlConstructor.
ISarlFieldBuilder addSarlField(String)
Create a SarlField
ITypeParameterBuilder addTypeParameter(String)
Add a type parameter.
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.
org.eclipse.xtext.common.types.JvmDeclaredType getJvmDeclaredType
Replies the JVM declared type for this generated SarlEvent.
SarlEvent getSarlEvent
Replies the generated SarlEvent.
org.eclipse.xtext.common.types.JvmTypeReference getSarlEventReference(JvmTypeReference*)
Replies the reference to the generated SarlAgent.
ISarlEventBuilder setDocumentation(String)
Change the documentation of the element.
ISarlEventBuilder setExtends(String)
Change the super type.
ISarlEventBuilder setExtends(JvmTypeReference)
Change the super type.
java.lang.String toString
Property Details
jvmDeclaredType
val jvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlEvent.

This property is an alias for the action: getJvmDeclaredType

Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
sarlEvent
val sarlEvent : SarlEvent
Replies the generated SarlEvent.

This property is an alias for the action: getSarlEvent

See:
"TopElementBuilderFragment.java : appendTo : 1798"
Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String) : ISarlEventBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this .
See:
"TopElementBuilderFragment.java : appendTo : 2492"
addSarlConstructor
def addSarlConstructor : ISarlConstructorBuilder
Create a SarlConstructor.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
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.
See:
"TopElementBuilderFragment.java : appendTo : 706"
addTypeParameter(String)
def addTypeParameter(String) : ITypeParameterBuilder
Add a type parameter.
Parameters:
name - the simple name of the type parameter.
Returns:
the builder of type parameter.
See:
"TopElementBuilderFragment.java : appendTo : 2546"
addValSarlField(String)
def addValSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addVarSarlField(String)
def addVarSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
eInit(SarlScript,String,IJvmTypeProvider)
def eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
Parameters:
script - the SARL script in which this SarlEvent is added.
name - the simple name of the SarlEvent.
context - the context in which the resolution of types must be done.
See:
"TopElementBuilderFragment.java : appendTo : 1662"
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the SarlEvent is attached.
See:
"TopElementBuilderFragment.java : appendTo : 1928"
getJvmDeclaredType
def getJvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlEvent.
Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
getSarlEvent
def getSarlEvent : SarlEvent
Replies the generated SarlEvent.
See:
"TopElementBuilderFragment.java : appendTo : 1798"
getSarlEventReference(JvmTypeReference*)
def getSarlEventReference(JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated SarlAgent.
Parameters:
args - the generic type arguments to put inside the reference.
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
setDocumentation(String)
def setDocumentation(String) : ISarlEventBuilder
Change the documentation of the element.

The documentation will be displayed just before the element.
Parameters:
doc - the documentation.
Returns:
this .
See:
"AbstractSubCodeBuilderFragment.java : appendTo : 603"
setExtends(String)
def setExtends(String) : ISarlEventBuilder
Change the super type.
Parameters:
superType - the qualified name of the super type, or null if the default type.
Returns:
this
See:
"TopElementBuilderFragment.java : appendTo : 1984"
setExtends(JvmTypeReference)
def setExtends(JvmTypeReference) : ISarlEventBuilder
Change the super type.
Parameters:
superType - the super type, or null if the default type.
Returns:
this .
See:
"TopElementBuilderFragment.java : appendTo : 2085"
toString
def toString : java.lang.String
See:
"TopElementBuilderFragment.java : appendTo : 1625"