Module org.eclipse.xtend.lib.macro
Interface MutableTypeParameterDeclarator
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,MutableAnnotationTarget,MutableDeclaration,MutableElement,MutableMemberDeclaration,MutableNamedElement,NamedElement,TypeParameterDeclarator
- All Known Subinterfaces:
MutableClassDeclaration,MutableConstructorDeclaration,MutableExecutableDeclaration,MutableInterfaceDeclaration,MutableMethodDeclaration
@Beta
public interface MutableTypeParameterDeclarator
extends MutableMemberDeclaration, TypeParameterDeclarator
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionaddTypeParameter(String name, TypeReference... upperBounds) Creates and adds a newMutableTypeParameterDeclarationto this declarator.Iterable<? extends MutableTypeParameterDeclaration> Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecatedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotationMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsReadMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
removeMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibilityMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
getTypeParameters
Iterable<? extends MutableTypeParameterDeclaration> getTypeParameters()- Specified by:
getTypeParametersin interfaceTypeParameterDeclarator- Returns:
- the declared type parameters
-
addTypeParameter
Creates and adds a newMutableTypeParameterDeclarationto this declarator.- Parameters:
name- the name of the type parameterupperBounds- the upperbounds- Returns:
- the created and attached
MutableTypeParameterDeclaration - Throws:
IllegalArgumentException-- if the
nameis not a valid java identifier - if the
upperBoundsisnullor containsnull
- if the
-