io.sarl.lang.codebuilder.builders
Class SarlCapacityBuilderImpl
All Superinterfaces:
ISarlCapacityBuilder
class SarlCapacityBuilderImpl
extends AbstractBuilder
implements ISarlCapacityBuilder
Builder of a Sarl SarlCapacity.
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 SarlCapacity.
SarlCapacity sarlCapacity
Replies the generated SarlCapacity.
org.eclipse.xtext.common.types.JvmTypeReference sarlCapacityReference
Replies the reference to the generated SarlAgent.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlActionBuilder addDefSarlAction(String)
Create a SarlAction.
ISarlCapacityBuilder addExtends(String)
Add the super type.
ISarlCapacityBuilder addExtends(JvmParameterizedTypeReference)
Add the super type.
ISarlCapacityBuilder addModifier(String)
Add a modifier.
ISarlActionBuilder addOverrideSarlAction(String)
Create a SarlAction.
ISarlActionBuilder addSarlAction(String)
Create a SarlAction
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 SarlCapacity is attached.
org.eclipse.xtext.common.types.JvmDeclaredType getJvmDeclaredType
Replies the JVM declared type for this generated SarlCapacity.
SarlCapacity getSarlCapacity
Replies the generated SarlCapacity.
org.eclipse.xtext.common.types.JvmTypeReference getSarlCapacityReference
Replies the reference to the generated SarlAgent.
ISarlCapacityBuilder setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
jvmDeclaredType
val jvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlCapacity.

This property is an alias for the action: getJvmDeclaredType

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

This property is an alias for the action: getSarlCapacity

See:
"TopElementBuilderFragment.java : appendTo : 1798"
sarlCapacityReference
val sarlCapacityReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated SarlAgent.

This property is an alias for the action: getSarlCapacityReference

Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
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.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addExtends(String)
def addExtends(String) : ISarlCapacityBuilder
Add the super type.
Parameters:
superType - the qualified name of the super type.
Returns:
this
See:
"TopElementBuilderFragment.java : appendTo : 1966"
addExtends(JvmParameterizedTypeReference)
def addExtends(JvmParameterizedTypeReference) : ISarlCapacityBuilder
Add the super type.
Parameters:
superType - the super type.
Returns:
this
See:
"TopElementBuilderFragment.java : appendTo : 2065"
addModifier(String)
def addModifier(String) : ISarlCapacityBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this .
See:
"TopElementBuilderFragment.java : appendTo : 2492"
addOverrideSarlAction(String)
def addOverrideSarlAction(String) : ISarlActionBuilder
Create a SarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
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.
See:
"TopElementBuilderFragment.java : appendTo : 706"
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 SarlCapacity is added.
name - the simple name of the SarlCapacity.
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 SarlCapacity is attached.
See:
"TopElementBuilderFragment.java : appendTo : 1928"
getJvmDeclaredType
def getJvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlCapacity.
Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
getSarlCapacity
def getSarlCapacity : SarlCapacity
Replies the generated SarlCapacity.
See:
"TopElementBuilderFragment.java : appendTo : 1798"
getSarlCapacityReference
def getSarlCapacityReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated SarlAgent.
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
setDocumentation(String)
def setDocumentation(String) : ISarlCapacityBuilder
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"
toString
def toString : java.lang.String
See:
"TopElementBuilderFragment.java : appendTo : 1625"