Top Methods
org.eclipse.xtend.lib.macro.declaration

public Interface MutableTypeParameterDeclarator

extends MutableMemberDeclaration, TypeParameterDeclarator
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.MutableInterfaceDeclaration, org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration, org.eclipse.xtend.lib.macro.declaration.MutableExecutableDeclaration
Annotations
@Beta
Imports
com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public MutableTypeParameterDeclaration

Returns:

the created and attached MutableTypeParameterDeclaration
addTypeParameter
(String
the name of the type parameter
name
,
TypeReference...
the upperbounds
upperBounds
)

Creates and adds a new MutableTypeParameterDeclaration to this declarator.

public Iterable<? extends MutableTypeParameterDeclaration>
Inherited from org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration:
getDeclaringTypesetDeprecatedsetDocCommentsetVisibility

Method Detail

addTypeParameterback to summary
public MutableTypeParameterDeclaration addTypeParameter(String name, TypeReference... upperBounds)

Creates and adds a new MutableTypeParameterDeclaration to this declarator.

Parameters
name:String

the name of the type parameter

upperBounds:TypeReference[]

the upperbounds

Returns:MutableTypeParameterDeclaration

the created and attached MutableTypeParameterDeclaration

Exceptions
IllegalArgumentException:
  1. if the name is not a valid java identifier
  2. if the upperBounds is null or contains null
getTypeParametersback to summary
public Iterable<? extends MutableTypeParameterDeclaration> getTypeParameters()

Redeclares org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator.getTypeParameters.