io.sarl.lang.codebuilder.appenders
Class BlockExpressionSourceAppender
All Superinterfaces:
IBlockExpressionBuilder
class BlockExpressionSourceAppender
extends AbstractSourceAppender
implements IBlockExpressionBuilder
Appender 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
org.eclipse.xtext.xbase.XBlockExpression xBlockExpression
An empty block expression.
Field Summary
Constructor Summary
Constructor and description
new(IBlockExpressionBuilder)
Action Summary
Modifier and type Action and description
IExpressionBuilder addExpression
Add an expression inside the block.
void build(ISourceAppender)
void dispose
Dispose the resource.
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.
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
org.eclipse.xtext.xbase.XBlockExpression getXBlockExpression
An empty block expression.
org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
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.
typeResolutionContext
val typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider

This property is an alias for the action: getTypeResolutionContext

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(IBlockExpressionBuilder)
new(IBlockExpressionBuilder)
Action Details
addExpression
def addExpression : IExpressionBuilder
Add an expression inside the block.
Returns:
the expression builder.
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

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
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.
toString
def toString : java.lang.String