io.sarl.lang.codebuilder.builders
Class FormalParameterBuilderImpl
All Superinterfaces:
IFormalParameterBuilder
class FormalParameterBuilderImpl
extends AbstractBuilder
implements IFormalParameterBuilder
Builder of a Sarl formal parameter.
Property Summary
Modifier and type Property and description
IExpressionBuilder defaultValue
Replies the default value of the parameter.
SarlFormalParameter sarlFormalParameter
Replies the created parameter.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void eInit(XtendExecutable,String,IJvmTypeProvider)
Initialize the formal parameter.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the formal parameter is attached.
IExpressionBuilder getDefaultValue
Replies the default value of the parameter.
SarlFormalParameter getSarlFormalParameter
Replies the created parameter.
void setParameterType(String)
Change the type.
void setReferenceInto(XFeatureCall)
Replies the JvmIdentifiable that corresponds to the formal parameter.
void setVarArg(boolean)
Change the variadic property of the parameter.
java.lang.String toString
Property Details
defaultValue
val defaultValue : IExpressionBuilder
Replies the default value of the parameter.

This property is an alias for the action: getDefaultValue

Returns:
the default value builder.
sarlFormalParameter
val sarlFormalParameter : SarlFormalParameter
Replies the created parameter.

This property is an alias for the action: getSarlFormalParameter

Returns:
the parameter.
Constructor Details
new
new
Action Details
eInit(XtendExecutable,String,IJvmTypeProvider)
def eInit(XtendExecutable,String,IJvmTypeProvider)
Initialize the formal parameter.
Parameters:
context - the context of the formal parameter.
name - the name of the formal parameter.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the formal parameter is attached.
getDefaultValue
def getDefaultValue : IExpressionBuilder
Replies the default value of the parameter.
Returns:
the default value builder.
getSarlFormalParameter
def getSarlFormalParameter : SarlFormalParameter
Replies the created parameter.
Returns:
the parameter.
setParameterType(String)
def setParameterType(String)
Change the type.
Parameters:
type - the formal parameter type.
setReferenceInto(XFeatureCall)
def setReferenceInto(XFeatureCall)
Replies the JvmIdentifiable that corresponds to the formal parameter.
Parameters:
container - the feature call that is supposed to contains the replied identifiable element.
setVarArg(boolean)
def setVarArg(boolean)
Change the variadic property of the parameter.
Parameters:
isVariadic - indicates if the parameter is variadic.
toString
def toString : java.lang.String