io.sarl.lang.codebuilder.appenders
Class SarlSpaceSourceAppender
All Superinterfaces:
ISarlSpaceBuilder
class SarlSpaceSourceAppender
extends AbstractSourceAppender
implements ISarlSpaceBuilder
Source adapter of a Sarl SarlSpace.
Property Summary
Modifier and type Property and description
SarlSpace sarlSpace
Replies the generated SarlSpace.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Field Summary
Constructor Summary
Constructor and description
new(ISarlSpaceBuilder)
Action Summary
Modifier and type Action and description
void addModifier(String)
Add a modifier.
void build(ISourceAppender)
void dispose
Dispose the resource.
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 SarlSpace is attached.
SarlSpace getSarlSpace
Replies the generated SarlSpace.
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
void setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
sarlSpace
val sarlSpace : SarlSpace
Replies the generated SarlSpace.

This property is an alias for the action: getSarlSpace

typeResolutionContext
val typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider

This property is an alias for the action: getTypeResolutionContext

Constructor Details
new(ISarlSpaceBuilder)
new(ISarlSpaceBuilder)
Action Details
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

dispose
def dispose
Dispose the resource.
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 SarlSpace is attached.
getSarlSpace
def getSarlSpace : SarlSpace
Replies the generated SarlSpace.
getTypeResolutionContext
def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
newTypeRef(String)
def newTypeRef(String) : org.eclipse.xtext.common.types.JvmParameterizedTypeReference
Find the reference to the type with the given name.
Parameters:
typeName - the fully qualified name of the type
Returns:
the type reference.
newTypeRef(Notifier,String)
def newTypeRef(Notifier,String) : org.eclipse.xtext.common.types.JvmParameterizedTypeReference
Find the reference to the type with the given name.
Parameters:
context - the context for the type reference use
typeName - the fully qualified name of the type
Returns:
the type reference.
setDocumentation(String)
def setDocumentation(String)
Change the documentation of the element.

The documentation will be displayed just before the element.
Parameters:
doc - the documentation.
toString
def toString : java.lang.String