io.sarl.lang.codebuilder.builders
Interface ITypeParameterBuilder
All Known Implementing Classes:
TypeParameterSourceAppender, TypeParameterBuilderImpl
interface ITypeParameterBuilder
Builder of a Sarl type parameter.
Property Summary
Modifier and type Property and description
org.eclipse.xtext.common.types.JvmTypeParameter jvmTypeParameter
Replies the created parameter.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Action Summary
Modifier and type Action and description
abstract void addLowerConstraint(String)
Add lower type bounds.
abstract void addUpperConstraint(String)
Add upper type bounds.
abstract void dispose
Dispose the resource.
abstract void eInit(EObject,String,IJvmTypeProvider)
Initialize the type parameter.
abstract org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the type parameter is attached.
abstract org.eclipse.xtext.common.types.JvmTypeParameter getJvmTypeParameter
Replies the created parameter.
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.
Property Details
jvmTypeParameter
val jvmTypeParameter : org.eclipse.xtext.common.types.JvmTypeParameter
Replies the created parameter.

This property is an alias for the action: getJvmTypeParameter

Returns:
the parameter.
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
addLowerConstraint(String)
def addLowerConstraint(String)
Add lower type bounds.
Parameters:
type - the type.
addUpperConstraint(String)
def addUpperConstraint(String)
Add upper type bounds.
Parameters:
type - the type.
dispose
def dispose
Dispose the resource.
eInit(EObject,String,IJvmTypeProvider)
def eInit(EObject,String,IJvmTypeProvider)
Initialize the type parameter.

Caution: This initialization function does not add the type parameter in its container. The container is responsible of adding the type parameter in its internal object.
Parameters:
name - the name of the type parameter.
typeContext - the provider of types or null.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the type parameter is attached.
getJvmTypeParameter
def getJvmTypeParameter : org.eclipse.xtext.common.types.JvmTypeParameter
Replies the created parameter.
Returns:
the parameter.
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.