public class CtIntersectionTypeReferenceImpl<T> extends CtTypeReferenceImpl<T> implements CtIntersectionTypeReference<T>
simplename
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
NULL_TYPE_NAME, OMITTED_TYPE_ARG_NAME
Constructor and Description |
---|
CtIntersectionTypeReferenceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
<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.
|
CtTypeReference<?> |
getTypeErasure() |
boolean |
isSimplyQualified() |
boolean |
removeBound(CtTypeReference<?> bound)
Removes a bound.
|
<C extends CtIntersectionTypeReference> |
setBounds(java.util.List<CtTypeReference<?>> bounds)
Sets the bounds of the intersection type.
|
CtIntersectionTypeReferenceImpl<T> |
setSimplyQualified(boolean isSimplyQualified) |
addActualTypeArgument, asCtIntersectionTypeReference, box, canAccess, canAccess, findClass, getAccessType, getActualAnnotatedElement, getActualClass, getActualTypeArguments, getAllExecutables, getAllFields, getDeclaration, getDeclaredExecutables, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getDeclaringType, getModifiers, getPackage, getQualifiedName, getSuperclass, getSuperInterfaces, getTopLevelType, getTypeDeclaration, getTypeParameterDeclaration, isAnnotationType, isAnonymous, isArray, isClass, isEnum, isGenerics, isInterface, isLocalType, isParameterized, isPrimitive, isShadow, isSubtypeOf, removeActualTypeArgument, setActualTypeArguments, setDeclaringType, setPackage, setShadow, unbox
equals, getSimpleName, setComments, setSimpleName
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
asCtIntersectionTypeReference, box, canAccess, canAccess, getAccessType, getActualClass, getDeclaration, getDeclaringType, getModifiers, getPackage, getSimpleName, getSuperclass, getSuperInterfaces, getTopLevelType, getTypeDeclaration, getTypeParameterDeclaration, setDeclaringType, setPackage, 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
filterChildren, map, map
addActualTypeArgument, getActualTypeArguments, removeActualTypeArgument, setActualTypeArguments
getAllExecutables, getAllFields, getDeclaredExecutables, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getQualifiedName, isAnnotationType, isAnonymous, isArray, isClass, isEnum, isGenerics, isInterface, isLocalType, isParameterized, isPrimitive, isSubtypeOf
isShadow, setShadow
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
accept
in class CtTypeReferenceImpl<T>
public java.util.List<CtTypeReference<?>> getBounds()
CtIntersectionTypeReference
T extends Interface1 & Interface2 // CtTypeParameterReference#getBoundingType == Interface1 and getBounds().get(0) == Interface1
getBounds
in interface CtIntersectionTypeReference<T>
public <C extends CtIntersectionTypeReference> C setBounds(java.util.List<CtTypeReference<?>> bounds)
CtIntersectionTypeReference
setBounds
in interface CtIntersectionTypeReference<T>
public <C extends CtIntersectionTypeReference> C addBound(CtTypeReference<?> bound)
CtIntersectionTypeReference
addBound
in interface CtIntersectionTypeReference<T>
public boolean removeBound(CtTypeReference<?> bound)
CtIntersectionTypeReference
removeBound
in interface CtIntersectionTypeReference<T>
public CtTypeReference<?> getTypeErasure()
getTypeErasure
in interface CtTypeInformation
getTypeErasure
in class CtTypeReferenceImpl<T>
public 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 CtIntersectionTypeReference<T>
clone
in interface CtReference
clone
in interface CtTypeReference<T>
clone
in class CtTypeReferenceImpl<T>
public boolean isSimplyQualified()
isSimplyQualified
in interface CtTypeReference<T>
isSimplyQualified
in class CtTypeReferenceImpl<T>
public CtIntersectionTypeReferenceImpl<T> setSimplyQualified(boolean isSimplyQualified)
setSimplyQualified
in interface CtTypeReference<T>
setSimplyQualified
in class CtTypeReferenceImpl<T>
isSimplyQualified
- false then the reference is printed fully qualified name.
true then only the type name is printed.Copyright © 2007–2021 Inria. All rights reserved.