io.sarl.lang.codebuilder.builders
Interface IBlockExpressionBuilder
All Known Implementing Classes:
BlockExpressionSourceAppender, BlockExpressionBuilderImpl
interface IBlockExpressionBuilder
Builder of a Sarl XBlockExpression.
Property Summary
Modifier and type Property and description
java.lang.String autoGeneratedActionString
Replies the string for "auto-generated" comments.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
org.eclipse.xtext.xbase.XBlockExpression xBlockExpression
An empty block expression.
Action Summary
Modifier and type Action and description
abstract IExpressionBuilder addExpression
Add an expression inside the block.
abstract void dispose
Dispose the resource.
abstract void eInit(IJvmTypeProvider)
Create the XBlockExpression.
abstract org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the XBlockExpression is attached.
abstract java.lang.String getAutoGeneratedActionString
Replies the string for "auto-generated" comments.
abstract java.lang.String getAutoGeneratedActionString(Resource)
Replies the string for "auto-generated" comments.
abstract org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
abstract org.eclipse.xtext.xbase.XBlockExpression getXBlockExpression
An empty block expression.
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 setDefaultAutoGeneratedContent(String)
Fill the block with the standard "auto-generated" content.
abstract void setInnerDocumentation(String)
Change the documentation of the element.
Property Details
autoGeneratedActionString
val autoGeneratedActionString : java.lang.String
Replies the string for "auto-generated" comments.

This property is an alias for the action: getAutoGeneratedActionString

Returns:
the comment text.
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.
xBlockExpression
val xBlockExpression : org.eclipse.xtext.xbase.XBlockExpression
An empty block expression.

This property is an alias for the action: getXBlockExpression

Returns:
the block expression.
Action Details
addExpression
def addExpression : IExpressionBuilder
Add an expression inside the block.
Returns:
the expression builder.
dispose
def dispose
Dispose the resource.
eInit(IJvmTypeProvider)
def eInit(IJvmTypeProvider)
Create the XBlockExpression.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the XBlockExpression is attached.
getAutoGeneratedActionString
def getAutoGeneratedActionString : java.lang.String
Replies the string for "auto-generated" comments.
Returns:
the comment text.
getAutoGeneratedActionString(Resource)
def getAutoGeneratedActionString(Resource) : java.lang.String
Replies the string for "auto-generated" comments.
Parameters:
resource - the resource for which the comment must be determined.
Returns:
the comment text.
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.
getXBlockExpression
def getXBlockExpression : org.eclipse.xtext.xbase.XBlockExpression
An empty block expression.
Returns:
the block expression.
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.
setDefaultAutoGeneratedContent(String)
def setDefaultAutoGeneratedContent(String)
Fill the block with the standard "auto-generated" content.

Any previously added content is removed.
Parameters:
type - the expected type of the block (the last instruction), or null for no type.
setInnerDocumentation(String)
def setInnerDocumentation(String)
Change the documentation of the element.

getXBlockExpression()
Parameters:
doc - the documentation.