io.sarl.lang.codebuilder.builders
Class BlockExpressionBuilderImpl
All Superinterfaces:
IBlockExpressionBuilder
class BlockExpressionBuilderImpl
extends AbstractBuilder
implements 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.
protected org.eclipse.xtext.tasks.ITaskTagProvider taskTagProvider
Replies the provider of task tags.
org.eclipse.xtext.xbase.XBlockExpression xBlockExpression
An empty block expression.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
IExpressionBuilder addExpression
Add an expression inside the block.
void eInit(IJvmTypeProvider)
Create the XBlockExpression.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the XBlockExpression is attached.
java.lang.String getAutoGeneratedActionString
Replies the string for "auto-generated" comments.
java.lang.String getAutoGeneratedActionString(Resource)
Replies the string for "auto-generated" comments.
protected org.eclipse.xtext.tasks.ITaskTagProvider getTaskTagProvider
Replies the provider of task tags.
org.eclipse.xtext.xbase.XBlockExpression getXBlockExpression
An empty block expression.
void setDefaultAutoGeneratedContent(String)
Fill the block with the standard "auto-generated" content.
void setInnerDocumentation(String)
Change the documentation of the element.
java.lang.String toString
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.
taskTagProvider
protected val taskTagProvider : org.eclipse.xtext.tasks.ITaskTagProvider
Replies the provider of task tags.

This property is an alias for the action: getTaskTagProvider

Returns:
the provider.
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.
Constructor Details
new
new
Action Details
addExpression
def addExpression : IExpressionBuilder
Add an expression inside the block.
Returns:
the expression builder.
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.
getTaskTagProvider
protected def getTaskTagProvider : org.eclipse.xtext.tasks.ITaskTagProvider
Replies the provider of task tags.
Returns:
the provider.
getXBlockExpression
def getXBlockExpression : org.eclipse.xtext.xbase.XBlockExpression
An empty block expression.
Returns:
the block expression.
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.
toString
def toString : java.lang.String