io.sarl.lang.codebuilder.appenders
Class SarlFieldSourceAppender
All Superinterfaces:
ISarlFieldBuilder
class SarlFieldSourceAppender
extends AbstractSourceAppender
implements ISarlFieldBuilder
Source appender of a Sarl SarlField.
Property Summary
Modifier and type Property and description
IExpressionBuilder initialValue
Replies the initialValue.
SarlField sarlField
Replies the generated element.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Field Summary
Constructor Summary
Constructor and description
new(ISarlFieldBuilder)
Action Summary
Modifier and type Action and description
void addModifier(String)
Add a modifier.
void build(ISourceAppender)
void dispose
Dispose the resource.
void eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
Initialize the Ecore element.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource.
IExpressionBuilder getInitialValue
Replies the initialValue.
SarlField getSarlField
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.
void setType(String)
Change the type.
java.lang.String toString
Property Details
initialValue
val initialValue : IExpressionBuilder
Replies the initialValue.

This property is an alias for the action: getInitialValue

Returns:
the value of the initialValue. It may be null .
sarlField
val sarlField : SarlField
Replies the generated element.

This property is an alias for the action: getSarlField

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

This property is an alias for the action: getTypeResolutionContext

Constructor Details
new(ISarlFieldBuilder)
new(ISarlFieldBuilder)
Action Details
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

dispose
def dispose
Dispose the resource.
eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,String,String,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlField.
name - the name of the SarlField.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource.
getInitialValue
def getInitialValue : IExpressionBuilder
Replies the initialValue.
Returns:
the value of the initialValue. It may be null .
getSarlField
def getSarlField : SarlField
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.
setType(String)
def setType(String)
Change the type.
Parameters:
type - the type of the member.
toString
def toString : java.lang.String