io.sarl.lang.codebuilder.builders
Interface ISarlEnumerationBuilder
All Known Implementing Classes:
SarlEnumerationSourceAppender, SarlEnumerationBuilderImpl
interface ISarlEnumerationBuilder
Builder of a Sarl SarlEnumeration.
Property Summary
Modifier and type Property and description
SarlEnumeration sarlEnumeration
Replies the generated SarlEnumeration.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Action Summary
Modifier and type Action and description
abstract void addModifier(String)
Add a modifier.
abstract ISarlEnumLiteralBuilder addSarlEnumLiteral(String)
Create a SarlEnumLiteral.
abstract void dispose
Dispose the resource.
abstract void eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
abstract void eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element when inner type declaration.
abstract org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the SarlEnumeration is attached.
abstract SarlEnumeration getSarlEnumeration
Replies the generated SarlEnumeration.
abstract org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(String)
Find the reference to the type with the given name.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
abstract void setDocumentation(String)
Change the documentation of the element.
Property Details
sarlEnumeration
val sarlEnumeration : SarlEnumeration
Replies the generated SarlEnumeration.

This property is an alias for the action: getSarlEnumeration

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.
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.
dispose
def dispose
Dispose the resource.
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.
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.
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.