io.sarl.lang.codebuilder.builders
Class SarlFieldBuilderImpl
All Superinterfaces:
ISarlFieldBuilder
class SarlFieldBuilderImpl
extends AbstractBuilder
implements ISarlFieldBuilder
Builder of a Sarl SarlField. AbstractMemberBuilderFragment.java : appendTo : 154
Property Summary
Modifier and type Property and description
IExpressionBuilder initialValue
Replies the initialValue.
SarlField sarlField
Replies the generated element.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlFieldBuilder addModifier(String)
Add a modifier.
void eInit(EObject,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.
ISarlFieldBuilder setDocumentation(String)
Change the documentation of the element.
ISarlFieldBuilder setType(String)
Change the type.
ISarlFieldBuilder setType(JvmTypeReference)
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 .
See:
"AbstractMemberBuilderFragment.java : appendTo : 1729"
sarlField
val sarlField : SarlField
Replies the generated element.

This property is an alias for the action: getSarlField

See:
"AbstractMemberBuilderFragment.java : appendTo : 962"
Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String) : ISarlFieldBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1602"
eInit(EObject,String,String,IJvmTypeProvider)
def eInit(EObject,String,String,IJvmTypeProvider)
Initialize the Ecore element.
Parameters:
container - the container of the SarlField.
name - the name of the SarlField.
modifier - the major/default modifier to be associated to the member.
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"
getInitialValue
def getInitialValue : IExpressionBuilder
Replies the initialValue.
Returns:
the value of the initialValue. It may be null .
See:
"AbstractMemberBuilderFragment.java : appendTo : 1729"
getSarlField
def getSarlField : SarlField
Replies the generated element.
See:
"AbstractMemberBuilderFragment.java : appendTo : 962"
setDocumentation(String)
def setDocumentation(String) : ISarlFieldBuilder
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"
setType(String)
def setType(String) : ISarlFieldBuilder
Change the type.
Parameters:
type - the type of the member.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1030"
setType(JvmTypeReference)
def setType(JvmTypeReference) : ISarlFieldBuilder
Change the type.
Parameters:
type - the type of the member.
Returns:
this
See:
"AbstractMemberBuilderFragment.java : appendTo : 1072"
toString
def toString : java.lang.String
See:
"AbstractMemberBuilderFragment.java : appendTo : 1638"