io.sarl.lang.codebuilder.builders
Class SarlAnnotationTypeBuilderImpl
All Superinterfaces:
ISarlAnnotationTypeBuilder
class SarlAnnotationTypeBuilderImpl
extends AbstractBuilder
implements ISarlAnnotationTypeBuilder
Builder of a Sarl SarlAnnotationType.
Property Summary
Modifier and type Property and description
SarlAnnotationType sarlAnnotationType
Replies the generated SarlAnnotationType.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void addModifier(String)
Add a modifier.
ISarlAnnotationTypeBuilder addSarlAnnotationType(String)
Create a SarlAnnotationType.
ISarlClassBuilder addSarlClass(String)
Create a SarlClass.
ISarlEnumerationBuilder addSarlEnumeration(String)
Create a SarlEnumeration.
ISarlFieldBuilder addSarlField(String)
Create a SarlField
ISarlInterfaceBuilder addSarlInterface(String)
Create a SarlInterface.
ISarlFieldBuilder addValSarlField(String)
Create a SarlField.
ISarlFieldBuilder addVarSarlField(String)
Create a SarlField.
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 SarlAnnotationType is attached.
SarlAnnotationType getSarlAnnotationType
Replies the generated SarlAnnotationType.
void setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
sarlAnnotationType
val sarlAnnotationType : SarlAnnotationType
Replies the generated SarlAnnotationType.

This property is an alias for the action: getSarlAnnotationType

Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addSarlAnnotationType(String)
def addSarlAnnotationType(String) : ISarlAnnotationTypeBuilder
Create a SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType.
Returns:
the builder.
addSarlClass(String)
def addSarlClass(String) : ISarlClassBuilder
Create a SarlClass.
Parameters:
name - the name of the SarlClass.
Returns:
the builder.
addSarlEnumeration(String)
def addSarlEnumeration(String) : ISarlEnumerationBuilder
Create a SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration.
Returns:
the builder.
addSarlField(String)
def addSarlField(String) : ISarlFieldBuilder
Create a SarlField. *

This function is equivalent to #addVarSarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
addSarlInterface(String)
def addSarlInterface(String) : ISarlInterfaceBuilder
Create a SarlInterface.
Parameters:
name - the name of the SarlInterface.
Returns:
the builder.
addValSarlField(String)
def addValSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
addVarSarlField(String)
def addVarSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
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 SarlAnnotationType is attached.
getSarlAnnotationType
def getSarlAnnotationType : SarlAnnotationType
Replies the generated SarlAnnotationType.
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