@Beta public interface MutableTypeParameterDeclaration extends MutableDeclaration, TypeParameterDeclaration
Modifier and Type | Method and Description |
---|---|
AnnotationReference |
addAnnotation(AnnotationReference annotationReference)
This operation is not supported.
|
MutableTypeParameterDeclarator |
getTypeParameterDeclarator() |
boolean |
removeAnnotation(AnnotationReference annotationReference)
This operation is not supported.
|
void |
setUpperBounds(java.lang.Iterable<? extends TypeReference> upperBounds) |
markAsRead
setSimpleName
remove
getUpperBounds
getQualifiedName, isAssignableFrom
findAnnotation, getAnnotations
MutableTypeParameterDeclarator getTypeParameterDeclarator()
getTypeParameterDeclarator
in interface TypeParameterDeclaration
TypeParameterDeclarator
declaring the type parametervoid setUpperBounds(java.lang.Iterable<? extends TypeReference> upperBounds)
upperBounds
- - the upper bounds, must not be null
java.lang.IllegalArgumentException
- if upperBounds
is null
or contains null
AnnotationReference addAnnotation(AnnotationReference annotationReference)
addAnnotation
in interface MutableAnnotationTarget
annotationReference
- the annotation referencejava.lang.UnsupportedOperationException
- alwaysboolean removeAnnotation(AnnotationReference annotationReference)
removeAnnotation
in interface MutableAnnotationTarget
annotationReference
- the annotation referencetrue
if this element contained the specified annotationjava.lang.UnsupportedOperationException
- always