public interface CtTypeParameterReference extends CtTypeReference<java.lang.Object>
NULL_TYPE_NAME, OMITTED_TYPE_ARG_NAME
Modifier and Type | Method and Description |
---|---|
CtTypeParameterReference |
clone()
Clone the element which calls this method in a new object.
|
CtTypeReference<?> |
getBoundingType()
A type parameter can have an
extends clause which declare
one (CtTypeReference or more (CtIntersectionTypeReference references. |
CtTypeParameter |
getDeclaration()
Returns the
CtTypeParameter , a CtTypeParameter , that declares the type parameter
referenced or null if the reference is not in a context where such type parameter is declared. |
boolean |
isDefaultBoundingType()
Returns true if this has the default bounding type that is java.lang.Object (which basically means that there is no bound)
|
<T extends CtActualTypeContainer> |
setActualTypeArguments(java.util.List<? extends CtTypeReference<?>> actualTypeArguments)
Sets the type arguments.
|
asCtIntersectionTypeReference, box, canAccess, canAccess, getAccessType, getActualClass, getDeclaringType, getModifiers, getPackage, getSimpleName, getSuperclass, getSuperInterfaces, getTopLevelType, getTypeDeclaration, getTypeParameterDeclaration, isSimplyQualified, setDeclaringType, setPackage, setSimplyQualified, unbox
setComments, setSimpleName
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
addActualTypeArgument, getActualTypeArguments, removeActualTypeArgument
getAllExecutables, getAllFields, getDeclaredExecutables, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getQualifiedName, getTypeErasure, isAnnotationType, isAnonymous, isArray, isClass, isEnum, isGenerics, isInterface, isLocalType, isParameterized, isPrimitive, isSubtypeOf
isShadow, setShadow
CtTypeReference<?> getBoundingType()
extends
clause which declare
one (CtTypeReference
or more (CtIntersectionTypeReference
references.
// Extends with generics. T extends Interface1 // Intersection type with generics. T extends Interface1 & Interface2
CtTypeParameter getDeclaration()
CtTypeParameter
, a CtTypeParameter
, that declares the type parameter
referenced or null
if the reference is not in a context where such type parameter is declared.
See also CtTypeReference.getTypeParameterDeclaration()
which has a different semantic.getDeclaration
in interface CtReference
getDeclaration
in interface CtTypeReference<java.lang.Object>
null
if the type
declaration is not the analyzed source files.CtTypeParameterReference clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtReference
clone
in interface CtTypeReference<java.lang.Object>
<T extends CtActualTypeContainer> T setActualTypeArguments(java.util.List<? extends CtTypeReference<?>> actualTypeArguments)
CtActualTypeContainer
setActualTypeArguments
in interface CtActualTypeContainer
boolean isDefaultBoundingType()
Copyright © 2007–2021 Inria. All rights reserved.