public interface CtIntersectionTypeReference<T> extends CtTypeReference<T>
NULL_TYPE_NAME, OMITTED_TYPE_ARG_NAME
Modifier and Type | Method and Description |
---|---|
<C extends CtIntersectionTypeReference> |
addBound(CtTypeReference<?> bound)
Adds a bound.
|
CtIntersectionTypeReference<T> |
clone()
Clone the element which calls this method in a new object.
|
java.util.List<CtTypeReference<?>> |
getBounds()
Gets the bounds of the intersection type.
|
boolean |
removeBound(CtTypeReference<?> bound)
Removes a bound.
|
<C extends CtIntersectionTypeReference> |
setBounds(java.util.List<CtTypeReference<?>> bounds)
Sets the bounds of the intersection type.
|
asCtIntersectionTypeReference, box, canAccess, canAccess, getAccessType, getActualClass, getDeclaration, 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, setActualTypeArguments
getAllExecutables, getAllFields, getDeclaredExecutables, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getQualifiedName, getTypeErasure, isAnnotationType, isAnonymous, isArray, isClass, isEnum, isGenerics, isInterface, isLocalType, isParameterized, isPrimitive, isSubtypeOf
isShadow, setShadow
java.util.List<CtTypeReference<?>> getBounds()
T extends Interface1 & Interface2 // CtTypeParameterReference#getBoundingType == Interface1 and getBounds().get(0) == Interface1
<C extends CtIntersectionTypeReference> C setBounds(java.util.List<CtTypeReference<?>> bounds)
<C extends CtIntersectionTypeReference> C addBound(CtTypeReference<?> bound)
boolean removeBound(CtTypeReference<?> bound)
CtIntersectionTypeReference<T> 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<T>
Copyright © 2007–2021 Inria. All rights reserved.