io.sarl.lang.codebuilder.builders
Class SarlArtifactBuilderImpl
All Superinterfaces:
ISarlArtifactBuilder
class SarlArtifactBuilderImpl
extends AbstractBuilder
implements ISarlArtifactBuilder
Builder of a Sarl SarlArtifact.
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 SarlArtifact.
SarlArtifact sarlArtifact
Replies the generated SarlArtifact.
org.eclipse.xtext.common.types.JvmTypeReference sarlArtifactReference
Replies the reference to the generated SarlAgent.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlArtifactBuilder addModifier(String)
Add a modifier.
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 SarlArtifact is attached.
org.eclipse.xtext.common.types.JvmDeclaredType getJvmDeclaredType
Replies the JVM declared type for this generated SarlArtifact.
SarlArtifact getSarlArtifact
Replies the generated SarlArtifact.
org.eclipse.xtext.common.types.JvmTypeReference getSarlArtifactReference
Replies the reference to the generated SarlAgent.
ISarlArtifactBuilder 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 SarlArtifact.

This property is an alias for the action: getJvmDeclaredType

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

This property is an alias for the action: getSarlArtifact

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

This property is an alias for the action: getSarlArtifactReference

Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String) : ISarlArtifactBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this .
See:
"TopElementBuilderFragment.java : appendTo : 2492"
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 SarlArtifact is added.
name - the simple name of the SarlArtifact.
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 SarlArtifact is attached.
See:
"TopElementBuilderFragment.java : appendTo : 1928"
getJvmDeclaredType
def getJvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlArtifact.
Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
getSarlArtifact
def getSarlArtifact : SarlArtifact
Replies the generated SarlArtifact.
See:
"TopElementBuilderFragment.java : appendTo : 1798"
getSarlArtifactReference
def getSarlArtifactReference : 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) : ISarlArtifactBuilder
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"