io.sarl.lang.codebuilder.builders
Interface ISarlConstructorBuilder
All Known Implementing Classes:
SarlConstructorSourceAppender, SarlConstructorBuilderImpl
interface ISarlConstructorBuilder
Builder of a Sarl SarlConstructor.
See:
"AbstractMemberBuilderFragment.java : appendTo : 117"
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
Replies the context for type resolution.
Action Summary
Modifier and type Action and description
abstract ISarlConstructorBuilder addException(String)
Add a throwable exception.
abstract ISarlConstructorBuilder addException(JvmTypeReference)
Add a throwable exception.
abstract ISarlConstructorBuilder addModifier(String)
Add a modifier.
abstract IFormalParameterBuilder addParameter(String)
Add a formal parameter.
abstract ITypeParameterBuilder addTypeParameter(String)
Add a type parameter.
abstract void dispose
Dispose the resource.
abstract void eInit(EObject,IJvmTypeProvider)
Initialize the Ecore element.
abstract org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource.
abstract IBlockExpressionBuilder getExpression
Create the block of code.
abstract SarlConstructor getSarlConstructor
Replies the generated element.
abstract org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
abstract org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(String)
Find the reference to the type with the given name.
abstract org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Class<T>,JvmTypeReference*)
Find the reference to the type and type parameters.
abstract org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
abstract org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(JvmType,JvmTypeReference*)
Find the reference to the type and type parameters.
abstract org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,Class<T>,JvmTypeReference*)
Find the reference to the type and type parameters.
abstract ISarlConstructorBuilder setDocumentation(String)
Change the documentation of the element.
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"
sarlConstructor
val sarlConstructor : SarlConstructor
Replies the generated element.

This property is an alias for the action: getSarlConstructor

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 : 585"
Action Details
addException(String)
def addException(String) : ISarlConstructorBuilder
Add a throwable exception.
Parameters:
type - the fully qualified name of the exception.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1158"
addException(JvmTypeReference)
def addException(JvmTypeReference) : ISarlConstructorBuilder
Add a throwable exception.
Parameters:
type - the exception.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1201"
addModifier(String)
def addModifier(String) : ISarlConstructorBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1602"
addParameter(String)
def addParameter(String) : IFormalParameterBuilder
Add a formal parameter.
Parameters:
name - the name of the formal parameter.
See:
"AbstractMemberBuilderFragment.java : appendTo : 1114"
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.
See:
"AbstractMemberBuilderFragment.java : appendTo : 1683"
dispose
def dispose
Dispose the resource.
See:
"AbstractMemberBuilderFragment.java : appendTo : 560"
eInit(EObject,IJvmTypeProvider)
def eInit(EObject,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlConstructor.
context - the context in which type resolution must be applied.
See:
"AbstractMemberBuilderFragment.java : appendTo : 632"
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"
getSarlConstructor
def getSarlConstructor : SarlConstructor
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 : 585"
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) : ISarlConstructorBuilder
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"