io.sarl.lang.codebuilder.builders
Class AbstractBuilder
All Known Subclasses:
BlockExpressionBuilderImpl, ExpressionBuilderImpl, FormalParameterBuilderImpl, SarlActionBuilderImpl, SarlAgentBuilderImpl, SarlAnnotationTypeBuilderImpl, SarlArtifactBuilderImpl, SarlBehaviorBuilderImpl, SarlBehaviorUnitBuilderImpl, SarlCapacityBuilderImpl, SarlClassBuilderImpl, SarlConstructorBuilderImpl, SarlEnumLiteralBuilderImpl, SarlEnumerationBuilderImpl, SarlEventBuilderImpl, SarlFieldBuilderImpl, SarlInterfaceBuilderImpl, SarlSkillBuilderImpl, SarlSpaceBuilderImpl, ScriptBuilderImpl, TypeParameterBuilderImpl
abstract class AbstractBuilder
extends java.lang.Object
Abstract implementation of a builder for the Sarl language.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 88"
Property Summary
Modifier and type Property and description
protected org.eclipse.xtext.xbase.compiler.ImportManager importManager
Replies the import manager that stores the imported types.
protected org.eclipse.xtext.xbase.imports.IImportsConfiguration importsConfiguration
Replies the import's configuration.
protected org.eclipse.xtext.common.types.util.Primitives primitiveTypes
Replies the primitive type tools.
protected org.eclipse.xtext.resource.IResourceFactory resourceFactory
Replies the resource factory.
java.lang.String scriptFileExtension
Replies the script's file extension.
protected org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder typeReferenceBuilder
Replies the builder of type references.
protected org.eclipse.xtext.common.types.util.TypeReferences typeReferences
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
protected org.eclipse.emf.common.util.URI computeUnusedUri(ResourceSet)
Compute a unused URI for a synthetic resource.
void dispose
abstract org.eclipse.emf.ecore.resource.Resource eResource
protected org.eclipse.xtext.common.types.JvmTypeReference findType(Notifier,String)
protected T getAssociatedElement(Class<T>,EObject,Resource,boolean)
protected org.eclipse.xtext.common.types.JvmExecutable getExecutableReferenceFor(EObject)
Replies the reference to the generated Ecore element.
protected org.eclipse.xtext.xbase.compiler.ImportManager getImportManager
Replies the import manager that stores the imported types.
protected org.eclipse.xtext.xbase.imports.IImportsConfiguration getImportsConfiguration
Replies the import's configuration.
protected org.eclipse.xtext.common.types.util.Primitives getPrimitiveTypes
Replies the primitive type tools.
protected java.lang.String getQualifiedName(EObject)
protected org.eclipse.xtext.resource.IResourceFactory getResourceFactory
Replies the resource factory.
java.lang.String getScriptFileExtension
Replies the script's file extension.
protected org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder getTypeReferenceBuilder
Replies the builder of type references.
protected org.eclipse.xtext.common.types.JvmTypeReference getTypeReferenceFor(EObject,JvmTypeReference*)
Replies the reference to the generated Ecore element.
protected org.eclipse.xtext.common.types.util.TypeReferences getTypeReferences
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
protected boolean isActionBodyAllowed(XtendTypeDeclaration)
Replies if the type could contains functions with a body.
protected boolean isSubTypeOf(EObject,JvmTypeReference,JvmTypeReference)
Replies if the first parameter is a subtype of the second parameter.
protected boolean isTypeReference(JvmTypeReference)
Replies if the given object is a valid type reference.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(String)
Replies the type reference for the given name in the given context.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Class<T>,JvmTypeReference*)
Replies the type reference for the given type and type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,String)
Replies the type reference for the given name in the given context.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(JvmType,JvmTypeReference*)
Replies the type reference for the given type and type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,Class<T>,JvmTypeReference*)
Replies the type reference for the given type and type parameters.
void setFileExtensions(String)
protected void setTypeResolutionContext(IJvmTypeProvider)
protected static org.eclipse.xtext.resource.XtextResource toResource(Notifier)
Property Details
importManager
protected val importManager : org.eclipse.xtext.xbase.compiler.ImportManager
Replies the import manager that stores the imported types.

This property is an alias for the action: getImportManager

Returns:
the import manager.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 889"
importsConfiguration
protected val importsConfiguration : org.eclipse.xtext.xbase.imports.IImportsConfiguration
Replies the import's configuration.

This property is an alias for the action: getImportsConfiguration

Returns:
the import's configuration.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 771"
primitiveTypes
protected val primitiveTypes : org.eclipse.xtext.common.types.util.Primitives
Replies the primitive type tools.

This property is an alias for the action: getPrimitiveTypes

Returns:
the primitive type tools.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 334"
resourceFactory
protected val resourceFactory : org.eclipse.xtext.resource.IResourceFactory
Replies the resource factory.

This property is an alias for the action: getResourceFactory

Returns:
the resource factory.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 833"
scriptFileExtension
val scriptFileExtension : java.lang.String
Replies the script's file extension.

This property is an alias for the action: getScriptFileExtension

See:
"AbstractBuilderBuilderFragment.java : appendTo : 278"
typeReferenceBuilder
protected val typeReferenceBuilder : org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder
Replies the builder of type references.

This property is an alias for the action: getTypeReferenceBuilder

Returns:
the type reference builder.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 297"
typeReferences
protected val typeReferences : org.eclipse.xtext.common.types.util.TypeReferences

This property is an alias for the action: getTypeReferences

See:
"AbstractBuilderBuilderFragment.java : appendTo : 318"
typeResolutionContext
var typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider

This property is an alias for the action: getTypeResolutionContext

See:
"AbstractBuilderBuilderFragment.java : appendTo : 266"
Constructor Details
new
new
Action Details
computeUnusedUri(ResourceSet)
protected def computeUnusedUri(ResourceSet) : org.eclipse.emf.common.util.URI
Compute a unused URI for a synthetic resource.
Parameters:
resourceSet - the resource set in which the resource should be located.
Returns:
the uri.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 792"
dispose
def dispose
See:
"AbstractBuilderBuilderFragment.java : appendTo : 923"
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
See:
"AbstractBuilderBuilderFragment.java : appendTo : 914"
findType(Notifier,String)
protected def findType(Notifier,String) : org.eclipse.xtext.common.types.JvmTypeReference
See:
"AbstractBuilderBuilderFragment.java : appendTo : 387"
getAssociatedElement(Class<T>,EObject,Resource,boolean)
protected def getAssociatedElement(Class<T>,EObject,Resource,boolean) : T

with T

See:
"AbstractBuilderBuilderFragment.java : appendTo : 212"
getExecutableReferenceFor(EObject)
protected def getExecutableReferenceFor(EObject) : org.eclipse.xtext.common.types.JvmExecutable
Replies the reference to the generated Ecore element.
Parameters:
ecoreObject - the object to get a reference to.
Since:
0.15
See:
"AbstractBuilderBuilderFragment.java : appendTo : 1006"
getImportManager
protected def getImportManager : org.eclipse.xtext.xbase.compiler.ImportManager
Replies the import manager that stores the imported types.
Returns:
the import manager.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 889"
getImportsConfiguration
protected def getImportsConfiguration : org.eclipse.xtext.xbase.imports.IImportsConfiguration
Replies the import's configuration.
Returns:
the import's configuration.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 771"
getPrimitiveTypes
protected def getPrimitiveTypes : org.eclipse.xtext.common.types.util.Primitives
Replies the primitive type tools.
Returns:
the primitive type tools.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 334"
getQualifiedName(EObject)
protected def getQualifiedName(EObject) : java.lang.String
See:
"AbstractBuilderBuilderFragment.java : appendTo : 904"
getResourceFactory
protected def getResourceFactory : org.eclipse.xtext.resource.IResourceFactory
Replies the resource factory.
Returns:
the resource factory.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 833"
getScriptFileExtension
def getScriptFileExtension : java.lang.String
Replies the script's file extension.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 278"
getTypeReferenceBuilder
protected def getTypeReferenceBuilder : org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder
Replies the builder of type references.
Returns:
the type reference builder.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 297"
getTypeReferenceFor(EObject,JvmTypeReference*)
protected def getTypeReferenceFor(EObject,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the reference to the generated Ecore element.
Parameters:
ecoreObject - the object to get a reference to.
args - the generic type arguments to put inside the reference.
Since:
0.15
See:
"AbstractBuilderBuilderFragment.java : appendTo : 947"
getTypeReferences
protected def getTypeReferences : org.eclipse.xtext.common.types.util.TypeReferences
See:
"AbstractBuilderBuilderFragment.java : appendTo : 318"
getTypeResolutionContext
def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
See:
"AbstractBuilderBuilderFragment.java : appendTo : 266"
isActionBodyAllowed(XtendTypeDeclaration)
protected def isActionBodyAllowed(XtendTypeDeclaration) : boolean
Replies if the type could contains functions with a body.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 850"
isSubTypeOf(EObject,JvmTypeReference,JvmTypeReference)
protected def isSubTypeOf(EObject,JvmTypeReference,JvmTypeReference) : boolean
Replies if the first parameter is a subtype of the second parameter.
Parameters:
context - the context.
subType - the subtype to test.
superType - the expected super type.
Returns:
the type reference.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 705"
isTypeReference(JvmTypeReference)
protected def isTypeReference(JvmTypeReference) : boolean
Replies if the given object is a valid type reference.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 748"
newTypeRef(String)
def newTypeRef(String) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the type reference for the given name in the given context.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 473"
newTypeRef(Class<T>,JvmTypeReference*)
def newTypeRef(Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the type reference for the given type and type parameters.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 637"
newTypeRef(Notifier,String)
def newTypeRef(Notifier,String) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the type reference for the given name in the given context.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 487"
newTypeRef(JvmType,JvmTypeReference*)
def newTypeRef(JvmType,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the type reference for the given type and type parameters.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 603"
newTypeRef(Notifier,Class<T>,JvmTypeReference*)
def newTypeRef(Notifier,Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Replies the type reference for the given type and type parameters.
See:
"AbstractBuilderBuilderFragment.java : appendTo : 655"
setFileExtensions(String)
def setFileExtensions(String)
See:
"AbstractBuilderBuilderFragment.java : appendTo : 195"
setTypeResolutionContext(IJvmTypeProvider)
protected def setTypeResolutionContext(IJvmTypeProvider)
See:
"AbstractBuilderBuilderFragment.java : appendTo : 256"
toResource(Notifier)
protected def toResource(Notifier) : org.eclipse.xtext.resource.XtextResource
See:
"AbstractBuilderBuilderFragment.java : appendTo : 429"