io.sarl.lang.codebuilder.builders
Class SarlEnumerationBuilderImpl
All Superinterfaces:
ISarlEnumerationBuilder
class SarlEnumerationBuilderImpl
extends AbstractBuilder
implements ISarlEnumerationBuilder
Builder of a Sarl SarlEnumeration.
Property Summary
Modifier and type Property and description
SarlEnumeration sarlEnumeration
Replies the generated SarlEnumeration.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void addModifier(String)
Add a modifier.
ISarlEnumLiteralBuilder addSarlEnumLiteral(String)
Create a SarlEnumLiteral.
void eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
void eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element when inner type declaration.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the SarlEnumeration is attached.
SarlEnumeration getSarlEnumeration
Replies the generated SarlEnumeration.
void setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
sarlEnumeration
val sarlEnumeration : SarlEnumeration
Replies the generated SarlEnumeration.

This property is an alias for the action: getSarlEnumeration

Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addSarlEnumLiteral(String)
def addSarlEnumLiteral(String) : ISarlEnumLiteralBuilder
Create a SarlEnumLiteral.
Parameters:
name - the name of the SarlEnumLiteral.
Returns:
the builder.
eInit(SarlScript,String,IJvmTypeProvider)
def eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element when inner type declaration.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the SarlEnumeration is attached.
getSarlEnumeration
def getSarlEnumeration : SarlEnumeration
Replies the generated SarlEnumeration.
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