io.sarl.lang.codebuilder.appenders
Class SarlBehaviorUnitSourceAppender
All Superinterfaces:
ISarlBehaviorUnitBuilder
class SarlBehaviorUnitSourceAppender
extends AbstractSourceAppender
implements ISarlBehaviorUnitBuilder
Source appender of a Sarl SarlBehaviorUnit.
See:
"AbstractMemberBuilderFragment.java : appendTo : 194"
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.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Field Summary
Constructor Summary
Constructor and description
new(ISarlBehaviorUnitBuilder)
Action Summary
Modifier and type Action and description
void build(ISourceAppender)
Fill the given receiver with the serialization of the element that is associated to this appender.
void dispose
Dispose the resource.
void eInit(EObject,String,IJvmTypeProvider)
Initialize the Ecore element.
void eInit(EObject,JvmParameterizedTypeReference,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.
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Class<T>,JvmTypeReference*)
Find the reference to the type and type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(JvmType,JvmTypeReference*)
Find the reference to the type and type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,Class<T>,JvmTypeReference*)
Find the reference to the type and type parameters.
ISarlBehaviorUnitBuilder 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.
See:
"AbstractMemberBuilderFragment.java : appendTo : 1445"
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 .
See:
"AbstractMemberBuilderFragment.java : appendTo : 1729"
sarlBehaviorUnit
val sarlBehaviorUnit : SarlBehaviorUnit
Replies the generated element.

This property is an alias for the action: getSarlBehaviorUnit

See:
"AbstractMemberBuilderFragment.java : appendTo : 962"
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.
See:
"AbstractMemberBuilderFragment.java : appendTo : 598"
Constructor Details
new(ISarlBehaviorUnitBuilder)
new(ISarlBehaviorUnitBuilder)
Action Details
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

Fill the given receiver with the serialization of the element that is associated to this appender.
Parameters:
appender - the receiver of the source code.
Throws exception:
  • java.io.IOException: if there is error during the serialization.
See:
"AbstractSubCodeBuilderFragment.java : appendTo : 550"
dispose
def dispose
Dispose the resource.
See:
"AbstractMemberBuilderFragment.java : appendTo : 569"
eInit(EObject,String,IJvmTypeProvider)
def eInit(EObject,String,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlBehaviorUnit.
name - the type of the SarlBehaviorUnit.
context - the context in which type resolution must be applied.
See:
"AbstractMemberBuilderFragment.java : appendTo : 632"
eInit(EObject,JvmParameterizedTypeReference,IJvmTypeProvider)
def eInit(EObject,JvmParameterizedTypeReference,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlBehaviorUnit.
name - the type of the SarlBehaviorUnit.
context - the context in which type resolution must be applied.
See:
"AbstractMemberBuilderFragment.java : appendTo : 816"
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource.
See:
"AbstractMemberBuilderFragment.java : appendTo : 996"
getExpression
def getExpression : IBlockExpressionBuilder
Create the block of code.
Returns:
the block builder.
See:
"AbstractMemberBuilderFragment.java : appendTo : 1445"
getGuard
def getGuard : IExpressionBuilder
Replies the guard.
Returns:
the value of the guard. It may be null .
See:
"AbstractMemberBuilderFragment.java : appendTo : 1729"
getSarlBehaviorUnit
def getSarlBehaviorUnit : SarlBehaviorUnit
Replies the generated element.
See:
"AbstractMemberBuilderFragment.java : appendTo : 962"
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.
See:
"AbstractMemberBuilderFragment.java : appendTo : 598"
newTypeRef(String)
def newTypeRef(String) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type with the given name.
Parameters:
typeName - the fully qualified name of the type
Returns:
the type reference.
See:
"AbstractMemberBuilderFragment.java : appendTo : 406"
newTypeRef(Class<T>,JvmTypeReference*)
def newTypeRef(Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type and type parameters.
Parameters:
type - the type to reference
args - the type arguments to put in the reference to the given type
Returns:
the type reference.
See:
"AbstractMemberBuilderFragment.java : appendTo : 496"
newTypeRef(Notifier,String)
def newTypeRef(Notifier,String) : org.eclipse.xtext.common.types.JvmTypeReference
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.
See:
"AbstractMemberBuilderFragment.java : appendTo : 434"
newTypeRef(JvmType,JvmTypeReference*)
def newTypeRef(JvmType,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type and type parameters.
Parameters:
type - the type to reference
args - the type arguments to put in the reference to the given type
Returns:
the type reference.
See:
"AbstractMemberBuilderFragment.java : appendTo : 464"
newTypeRef(Notifier,Class<T>,JvmTypeReference*)
def newTypeRef(Notifier,Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type and type parameters.
Parameters:
context - the context in which the type is defined
type - the type to reference
args - the type arguments to put in the reference to the given type
Returns:
the type reference.
See:
"AbstractMemberBuilderFragment.java : appendTo : 530"
setDocumentation(String)
def setDocumentation(String) : ISarlBehaviorUnitBuilder
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:
"AbstractMemberBuilderFragment.java : appendTo : 1638"