io.sarl.lang.codebuilder.builders
Class TypeParameterBuilderImpl
All Superinterfaces:
ITypeParameterBuilder
class TypeParameterBuilderImpl
extends AbstractBuilder
implements ITypeParameterBuilder
Builder of a Sarl type parameter.
See:
"TypeParameterBuilderFragment.java : appendTo : 132"
Property Summary
Modifier and type Property and description
org.eclipse.xtext.common.types.JvmTypeParameter jvmTypeParameter
Replies the created parameter.
org.eclipse.xtext.common.types.JvmTypeReference jvmTypeParameterReference
Replies a reference to the created parameter.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ITypeParameterBuilder addLowerConstraint(String)
Add lower type bounds.
ITypeParameterBuilder addLowerConstraint(JvmTypeReference)
Add lower type bounds.
ITypeParameterBuilder addUpperConstraint(String)
Add upper type bounds.
ITypeParameterBuilder addUpperConstraint(JvmTypeReference)
Add upper type bounds.
void eInit(XtendExecutable,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
Initialize the type parameter.
void eInit(XtendTypeDeclaration,JvmTypeParameterDeclarator,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.
org.eclipse.xtext.common.types.JvmTypeReference getJvmTypeParameterReference
Replies a reference to the created parameter.
protected void internalEInit(EObject,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
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.
See:
"TypeParameterBuilderFragment.java : appendTo : 565"
jvmTypeParameterReference
val jvmTypeParameterReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies a reference to the created parameter.

This property is an alias for the action: getJvmTypeParameterReference

Returns:
the reference to the parameter.
See:
"TypeParameterBuilderFragment.java : appendTo : 602"
Constructor Details
new
new
Action Details
addLowerConstraint(String)
def addLowerConstraint(String) : ITypeParameterBuilder
Add lower type bounds.
Parameters:
type - the type.
Returns:
this
See:
"TypeParameterBuilderFragment.java : appendTo : 801"
addLowerConstraint(JvmTypeReference)
def addLowerConstraint(JvmTypeReference) : ITypeParameterBuilder
Add lower type bounds.
Parameters:
type - the type.
Returns:
this
See:
"TypeParameterBuilderFragment.java : appendTo : 834"
addUpperConstraint(String)
def addUpperConstraint(String) : ITypeParameterBuilder
Add upper type bounds.
Parameters:
type - the type.
Returns:
this
See:
"TypeParameterBuilderFragment.java : appendTo : 716"
addUpperConstraint(JvmTypeReference)
def addUpperConstraint(JvmTypeReference) : ITypeParameterBuilder
Add upper type bounds.
Parameters:
type - the type.
Returns:
this
See:
"TypeParameterBuilderFragment.java : appendTo : 749"
eInit(XtendExecutable,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
def eInit(XtendExecutable,JvmTypeParameterDeclarator,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. However, this function sets the declarator of the type parameter by calling setDeclarator(JvmTypeParameterDeclarator).
Parameters:
context - the container of the type parameter.
declarator - the container of the type parameter.
name - the name of the type parameter.
typeContext - the provider of types or null.
See:
"TypeParameterBuilderFragment.java : appendTo : 455"
eInit(XtendTypeDeclaration,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
def eInit(XtendTypeDeclaration,JvmTypeParameterDeclarator,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. However, this function sets the declarator of the type parameter by calling setDeclarator(JvmTypeParameterDeclarator).
Parameters:
context - the container of the type parameter.
declarator - the container of the type parameter.
name - the name of the type parameter.
typeContext - the provider of types or null.
See:
"TypeParameterBuilderFragment.java : appendTo : 408"
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the type parameter is attached.
See:
"TypeParameterBuilderFragment.java : appendTo : 635"
getJvmTypeParameter
def getJvmTypeParameter : org.eclipse.xtext.common.types.JvmTypeParameter
Replies the created parameter.
Returns:
the parameter.
See:
"TypeParameterBuilderFragment.java : appendTo : 565"
getJvmTypeParameterReference
def getJvmTypeParameterReference : org.eclipse.xtext.common.types.JvmTypeReference
Replies a reference to the created parameter.
Returns:
the reference to the parameter.
See:
"TypeParameterBuilderFragment.java : appendTo : 602"
internalEInit(EObject,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
protected def internalEInit(EObject,JvmTypeParameterDeclarator,String,IJvmTypeProvider)
See:
"TypeParameterBuilderFragment.java : appendTo : 485"
toString
def toString : java.lang.String
See:
"TypeParameterBuilderFragment.java : appendTo : 661"