@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, setVisibility
markAsRead
addAnnotation, removeAnnotation
setSimpleName
remove
getDocComment, getModifiers, getVisibility, isDeprecated
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
java.lang.Iterable<? extends MutableTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParameterDeclarator
MutableTypeParameterDeclaration addTypeParameter(java.lang.String name, TypeReference... upperBounds)
MutableTypeParameterDeclaration
to this
declarator.name
- the name of the type parameterupperBounds
- the upperboundsMutableTypeParameterDeclaration
java.lang.IllegalArgumentException
- name
is not a valid java identifierupperBounds
is null
or contains null