io.sarl.lang.codebuilder.appenders
Class TypeParameterSourceAppender
All Superinterfaces:
ITypeParameterBuilder
class TypeParameterSourceAppender
extends AbstractSourceAppender
implements ITypeParameterBuilder
Appender of a Sarl type parameter.
See:
"TypeParameterBuilderFragment.java : appendTo : 170"
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.
org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Field Summary
Constructor Summary
Constructor and description
new(ITypeParameterBuilder)
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 build(ISourceAppender)
Fill the given receiver with the serialization of the element that is associated to this appender.
void dispose
Dispose the resource.
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.
org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Class<T>,JvmTypeReference*)
Find the reference to the type with the given type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,String)
Find the reference to the type with the given name.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(JvmType,JvmTypeReference*)
Find the reference to the type with the given type parameters.
org.eclipse.xtext.common.types.JvmTypeReference newTypeRef(Notifier,Class<T>,JvmTypeReference*)
Find the reference to the type with the given type parameters.
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"
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.
See:
"TypeParameterBuilderFragment.java : appendTo : 546"
Constructor Details
new(ITypeParameterBuilder)
new(ITypeParameterBuilder)
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"
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

Fill the given receiver with the serialization of the element that is associated to this appender.
Parameters:
appender - the receiver of the source code.
Throws exception:
  • java.io.IOException: if there is error during the serialization.
See:
"AbstractSubCodeBuilderFragment.java : appendTo : 550"
dispose
def dispose
Dispose the resource.
See:
"TypeParameterBuilderFragment.java : appendTo : 698"
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"
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.
See:
"TypeParameterBuilderFragment.java : appendTo : 546"
newTypeRef(String)
def newTypeRef(String) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type with the given name.
Parameters:
typeName - the fully qualified name of the type
Returns:
the type reference.
See:
"TypeParameterBuilderFragment.java : appendTo : 239"
newTypeRef(Class<T>,JvmTypeReference*)
def newTypeRef(Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type with the given type parameters.
Parameters:
type - the type to reference
args - the type parameters to add to the to reference to the given type
Returns:
the type reference.
See:
"TypeParameterBuilderFragment.java : appendTo : 329"
newTypeRef(Notifier,String)
def newTypeRef(Notifier,String) : org.eclipse.xtext.common.types.JvmTypeReference
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.
See:
"TypeParameterBuilderFragment.java : appendTo : 267"
newTypeRef(JvmType,JvmTypeReference*)
def newTypeRef(JvmType,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type with the given type parameters.
Parameters:
type - the type to reference
args - the type parameters to add to the to reference to the given type
Returns:
the type reference.
See:
"TypeParameterBuilderFragment.java : appendTo : 297"
newTypeRef(Notifier,Class<T>,JvmTypeReference*)
def newTypeRef(Notifier,Class<T>,JvmTypeReference*) : org.eclipse.xtext.common.types.JvmTypeReference
Find the reference to the type with the given type parameters.
Parameters:
context - the context in which the type is defined
type - the type to reference
args - the type parameters to add to the to reference to the given type
Returns:
the type reference.
See:
"TypeParameterBuilderFragment.java : appendTo : 363"