@Beta public interface MutableTypeParameterDeclarator extends MutableMemberDeclaration, TypeParameterDeclarator
| Modifier and Type | Method and Description |
|---|---|
MutableTypeParameterDeclaration |
addTypeParameter(java.lang.String name,
TypeReference... upperBounds)
Creates and adds a new
MutableTypeParameterDeclaration to this
declarator. |
java.lang.Iterable<? extends MutableTypeParameterDeclaration> |
getTypeParameters() |
getDeclaringType, setDeprecated, setDocComment, setVisibilitymarkAsReadaddAnnotation, removeAnnotationsetSimpleNameremovegetDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsgetCompilationUnit, getSimpleNamejava.lang.Iterable<? extends MutableTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParameterDeclaratorMutableTypeParameterDeclaration addTypeParameter(java.lang.String name, TypeReference... upperBounds)
MutableTypeParameterDeclaration to this
declarator.name - the name of the type parameterupperBounds - the upperboundsMutableTypeParameterDeclarationjava.lang.IllegalArgumentException - name is not a valid java identifierupperBounds is null or contains null