io.sarl.lang.codebuilder.builders
Interface ISarlActionBuilder
All Known Implementing Classes:
SarlActionSourceAppender, SarlActionBuilderImpl
interface ISarlActionBuilder
Builder of a Sarl SarlAction.
Property Summary
Modifier and type Property and description
IBlockExpressionBuilder expression
Create the block of code.
SarlAction sarlAction
Replies the generated element.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Action Summary
Modifier and type Action and description
abstract void addAnnotation(String)
Add an annotation.
abstract void addException(String)
Add a throwable exception.
abstract void addFiredEvent(String)
Add a fired exception.
abstract void addModifier(String)
Add a modifier.
abstract IFormalParameterBuilder addParameter(String)
Add a formal parameter.
abstract ITypeParameterBuilder addTypeParameter(String)
Add a type parameter.
abstract void dispose
Dispose the resource.
abstract void eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
Initialize the Ecore element.
abstract org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource.
abstract IBlockExpressionBuilder getExpression
Create the block of code.
abstract SarlAction getSarlAction
Replies the generated element.
abstract org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(String)
Find the reference to the type with the given name.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
abstract void setDocumentation(String)
Change the documentation of the element.
abstract void setReturnType(String)
Change the return type.
Property Details
expression
val expression : IBlockExpressionBuilder
Create the block of code.

This property is an alias for the action: getExpression

Returns:
the block builder.
sarlAction
val sarlAction : SarlAction
Replies the generated element.

This property is an alias for the action: getSarlAction

typeResolutionContext
val typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
Replies the context for type resolution.

This property is an alias for the action: getTypeResolutionContext

Returns:
the context or null if the Ecore object is the context.
Action Details
addAnnotation(String)
def addAnnotation(String)
Add an annotation.
Parameters:
type - the qualified name of the annotation
addException(String)
def addException(String)
Add a throwable exception.
Parameters:
type - the fully qualified name of the exception.
addFiredEvent(String)
def addFiredEvent(String)
Add a fired exception.
Parameters:
type - the fully qualified name of the event.
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addParameter(String)
def addParameter(String) : IFormalParameterBuilder
Add a formal parameter.
Parameters:
name - the name of the formal parameter.
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.
dispose
def dispose
Dispose the resource.
eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlAction.
name - the name of the SarlAction.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource.
getExpression
def getExpression : IBlockExpressionBuilder
Create the block of code.
Returns:
the block builder.
getSarlAction
def getSarlAction : SarlAction
Replies the generated element.
getTypeResolutionContext
def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
Replies the context for type resolution.
Returns:
the context or null if the Ecore object is the context.
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.
setReturnType(String)
def setReturnType(String)
Change the return type.
Parameters:
type - the return type of the member.