io.sarl.lang.codebuilder.builders
Class TypeParameterBuilderImpl
All Superinterfaces:
ITypeParameterBuilder
class TypeParameterBuilderImpl
extends AbstractBuilder
implements 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.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void addLowerConstraint(String)
Add lower type bounds.
void addUpperConstraint(String)
Add upper type bounds.
void eInit(EObject,String,IJvmTypeProvider)
Initialize the type parameter.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the type parameter is attached.
org.eclipse.xtext.common.types.JvmTypeParameter getJvmTypeParameter
Replies the created parameter.
java.lang.String toString
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.
Constructor Details
new
new
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.
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.
toString
def toString : java.lang.String