io.sarl.lang.codebuilder.builders
Class SarlAnnotationTypeBuilderImpl
All Superinterfaces:
ISarlAnnotationTypeBuilder
class SarlAnnotationTypeBuilderImpl
extends AbstractBuilder
implements ISarlAnnotationTypeBuilder
Builder of a Sarl SarlAnnotationType.
See:
"TopElementBuilderFragment.java : appendTo : 410"
Property Summary
Modifier and type Property and description
org.eclipse.xtext.common.types.JvmDeclaredType jvmDeclaredType
Replies the JVM declared type for this generated SarlAnnotationType.
SarlAnnotationType sarlAnnotationType
Replies the generated SarlAnnotationType.
org.eclipse.xtext.common.types.JvmTypeReference sarlAnnotationTypeReference
Replies the reference to the generated SarlAgent.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlAnnotationTypeBuilder 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.
org.eclipse.xtext.common.types.JvmDeclaredType getJvmDeclaredType
Replies the JVM declared type for this generated SarlAnnotationType.
SarlAnnotationType getSarlAnnotationType
Replies the generated SarlAnnotationType.
org.eclipse.xtext.common.types.JvmTypeReference getSarlAnnotationTypeReference
Replies the reference to the generated SarlAgent.
ISarlAnnotationTypeBuilder setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
jvmDeclaredType
val jvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlAnnotationType.

This property is an alias for the action: getJvmDeclaredType

Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
sarlAnnotationType
val sarlAnnotationType : SarlAnnotationType
Replies the generated SarlAnnotationType.

This property is an alias for the action: getSarlAnnotationType

See:
"TopElementBuilderFragment.java : appendTo : 1798"
sarlAnnotationTypeReference
val sarlAnnotationTypeReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated SarlAgent.

This property is an alias for the action: getSarlAnnotationTypeReference

Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
Constructor Details
new
new
Action Details
addModifier(String)
def addModifier(String) : ISarlAnnotationTypeBuilder
Add a modifier.
Parameters:
modifier - the modifier to add.
Returns:
this .
See:
"TopElementBuilderFragment.java : appendTo : 2492"
addSarlAnnotationType(String)
def addSarlAnnotationType(String) : ISarlAnnotationTypeBuilder
Create a SarlAnnotationType.
Parameters:
name - the name of the SarlAnnotationType.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addSarlClass(String)
def addSarlClass(String) : ISarlClassBuilder
Create a SarlClass.
Parameters:
name - the name of the SarlClass.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addSarlEnumeration(String)
def addSarlEnumeration(String) : ISarlEnumerationBuilder
Create a SarlEnumeration.
Parameters:
name - the name of the SarlEnumeration.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
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.
See:
"TopElementBuilderFragment.java : appendTo : 706"
addSarlInterface(String)
def addSarlInterface(String) : ISarlInterfaceBuilder
Create a SarlInterface.
Parameters:
name - the name of the SarlInterface.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addValSarlField(String)
def addValSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
addVarSarlField(String)
def addVarSarlField(String) : ISarlFieldBuilder
Create a SarlField.
Parameters:
name - the name of the SarlField.
Returns:
the builder.
See:
"TopElementBuilderFragment.java : appendTo : 564"
eInit(SarlScript,String,IJvmTypeProvider)
def eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
Parameters:
script - the SARL script in which this SarlAnnotationType is added.
name - the simple name of the SarlAnnotationType.
context - the context in which the resolution of types must be done.
See:
"TopElementBuilderFragment.java : appendTo : 1662"
eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,String,IJvmTypeProvider)
Initialize the Ecore element when inner type declaration.
Parameters:
container - the Ecore type that must contain this new SarlAnnotationType.
name - the simple name of the SarlAnnotationType.
context - the context in which the resolution of types must be done.
See:
"TopElementBuilderFragment.java : appendTo : 1741"
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the SarlAnnotationType is attached.
See:
"TopElementBuilderFragment.java : appendTo : 1928"
getJvmDeclaredType
def getJvmDeclaredType : org.eclipse.xtext.common.types.JvmDeclaredType
Replies the JVM declared type for this generated SarlAnnotationType.
Returns:
the type, never null .
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1893"
getSarlAnnotationType
def getSarlAnnotationType : SarlAnnotationType
Replies the generated SarlAnnotationType.
See:
"TopElementBuilderFragment.java : appendTo : 1798"
getSarlAnnotationTypeReference
def getSarlAnnotationTypeReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated SarlAgent.
Since:
0.15
See:
"TopElementBuilderFragment.java : appendTo : 1838"
setDocumentation(String)
def setDocumentation(String) : ISarlAnnotationTypeBuilder
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"
toString
def toString : java.lang.String
See:
"TopElementBuilderFragment.java : appendTo : 1625"