io.sarl.lang.codebuilder.appenders
Class SarlConstructorSourceAppender
All Superinterfaces:
ISarlConstructorBuilder
class SarlConstructorSourceAppender
extends AbstractSourceAppender
implements ISarlConstructorBuilder
Source appender of a Sarl SarlConstructor.
Property Summary
Modifier and type Property and description
IBlockExpressionBuilder expression
Create the block of code.
SarlConstructor sarlConstructor
Replies the generated element.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Field Summary
Constructor Summary
Constructor and description
new(ISarlConstructorBuilder)
Action Summary
Modifier and type Action and description
void addException(String)
Add a throwable exception.
void addModifier(String)
Add a modifier.
IFormalParameterBuilder addParameter(String)
Add a formal parameter.
ITypeParameterBuilder addTypeParameter(String)
Add a type parameter.
void build(ISourceAppender)
void dispose
Dispose the resource.
void eInit(XtendTypeDeclaration,IJvmTypeProvider)
Initialize the Ecore element.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource.
IBlockExpressionBuilder getExpression
Create the block of code.
SarlConstructor getSarlConstructor
Replies the generated element.
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
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 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.
sarlConstructor
val sarlConstructor : SarlConstructor
Replies the generated element.

This property is an alias for the action: getSarlConstructor

typeResolutionContext
val typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider

This property is an alias for the action: getTypeResolutionContext

Constructor Details
new(ISarlConstructorBuilder)
new(ISarlConstructorBuilder)
Action Details
addException(String)
def addException(String)
Add a throwable exception.
Parameters:
type - the fully qualified name of the exception.
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addParameter(String)
def addParameter(String) : IFormalParameterBuilder
Add a formal parameter.
Parameters:
name - the name of the formal parameter.
addTypeParameter(String)
def addTypeParameter(String) : ITypeParameterBuilder
Add a type parameter.
Parameters:
name - the simple name of the type parameter.
Returns:
the builder of type parameter.
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

dispose
def dispose
Dispose the resource.
eInit(XtendTypeDeclaration,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlConstructor.
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.
getSarlConstructor
def getSarlConstructor : SarlConstructor
Replies the generated element.
getTypeResolutionContext
def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
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.
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