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
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableTypeParameterDeclarationaddTypeParameter(java.lang.String name, TypeReference... upperBounds)Creates and adds a newMutableTypeParameterDeclarationto this declarator.java.lang.Iterable<? extends MutableTypeParameterDeclaration>getTypeParameters()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotation
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsRead
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
remove
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibility
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
getTypeParameters
java.lang.Iterable<? extends MutableTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParametersin interfaceTypeParameterDeclarator- Returns:
- the declared type parameters
-
addTypeParameter
MutableTypeParameterDeclaration addTypeParameter(java.lang.String name, TypeReference... upperBounds)
Creates and adds a newMutableTypeParameterDeclarationto this declarator.- Parameters:
name- the name of the type parameterupperBounds- the upperbounds- Returns:
- the created and attached
MutableTypeParameterDeclaration - Throws:
java.lang.IllegalArgumentException-- if the
nameis not a valid java identifier - if the
upperBoundsisnullor containsnull
- if the
-
-