io.sarl.lang.codebuilder.builders
Class SarlBehaviorUnitBuilderImpl
All Superinterfaces:
ISarlBehaviorUnitBuilder
class SarlBehaviorUnitBuilderImpl
extends AbstractBuilder
implements ISarlBehaviorUnitBuilder
Builder of a Sarl SarlBehaviorUnit.
Property Summary
Modifier and type Property and description
IBlockExpressionBuilder expression
Create the block of code.
IExpressionBuilder guard
Replies the guard.
SarlBehaviorUnit sarlBehaviorUnit
Replies the generated element.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource.
IBlockExpressionBuilder getExpression
Create the block of code.
IExpressionBuilder getGuard
Replies the guard.
SarlBehaviorUnit getSarlBehaviorUnit
Replies the generated element.
void setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
expression
val expression : IBlockExpressionBuilder
Create the block of code.

This property is an alias for the action: getExpression

Returns:
the block builder.
guard
val guard : IExpressionBuilder
Replies the guard.

This property is an alias for the action: getGuard

Returns:
the value of the guard. It may be null .
sarlBehaviorUnit
val sarlBehaviorUnit : SarlBehaviorUnit
Replies the generated element.

This property is an alias for the action: getSarlBehaviorUnit

Constructor Details
new
new
Action Details
eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlBehaviorUnit.
name - the type of the SarlBehaviorUnit.
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.
getGuard
def getGuard : IExpressionBuilder
Replies the guard.
Returns:
the value of the guard. It may be null .
getSarlBehaviorUnit
def getSarlBehaviorUnit : SarlBehaviorUnit
Replies the generated element.
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