public class InferenceVariable extends LightTypeParameter
Iconable.IconFlags, Iconable.LastComputedIcon
myManager
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
static void |
addBound(PsiType inferenceVariableType,
PsiType boundType,
InferenceBound inferenceBound,
InferenceSession session) |
java.util.List<PsiType> |
getBounds(InferenceBound inferenceBound) |
java.util.Set<InferenceVariable> |
getDependencies(InferenceSession session) |
PsiClassType [] |
getExtendsListTypes()
Returns the list of class types for the classes that this class or interface extends.
|
PsiType |
getInstantiation() |
java.lang.String |
getName()
Returns the name of the element.
|
PsiTypeParameterListOwner |
getOwner()
Returns the element which is parameterized by the type parameter.
|
PsiTypeParameter |
getParameter() |
boolean |
isEquivalentTo(PsiElement another)
This method shouldn't be called by clients directly, because there are no guarantees of it being symmetric.
|
boolean |
isInheritor(PsiClass baseClass,
boolean checkDeep)
Checks if this class is an inheritor of the specified base class.
|
void |
setInstantiation(PsiType instantiation) |
void |
setThrownBound() |
java.lang.String |
toString()
toString() should never be presented to the user.
|
boolean |
useDelegateToSubstitute() |
accept, addAnnotation, copy, findAnnotation, getAnnotations, getApplicableAnnotations, getDelegate, getIndex
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getConstructors, getContainingClass, getContainingFile, getContext, getDocComment, getExtendsList, getFields, getImplementsList, getImplementsListTypes, getInitializers, getInnerClasses, getInterfaces, getLBrace, getMethods, getModifierList, getNameIdentifier, getNavigationElement, getQualifiedName, getRBrace, getScope, getSuperClass, getSupers, getSuperTypes, getText, getTypeParameterList, getTypeParameters, getVisibleSignatures, hasModifierProperty, hasTypeParameters, isAnnotationType, isDeprecated, isEnum, isInheritorDeep, isInterface, isValid, processDeclarations, setName
add, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isPhysical, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, getBounds, getExtendsList, hasAnnotation
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getClassKind, getConstructors, getContainingClass, getFields, getImplementsList, getImplementsListTypes, getInitializers, getInnerClasses, getInterfaces, getInterfaceTypes, getLBrace, getMethods, getNameIdentifier, getQualifiedName, getRBrace, getRecordComponents, getRecordHeader, getScope, getSuperClass, getSuperClassType, getSupers, getSuperTypes, getVisibleSignatures, isAnnotationType, isEnum, isInheritorDeep, isInterface, isRecord, setName
getIdentifyingElement
isDeprecated
getDocComment
getTypeParameterList, getTypeParameters, hasTypeParameters
getPresentation
canNavigate, canNavigateToSource, navigate
getAnnotation, getSourceElement, hasModifier
getModifierList, hasModifierProperty
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
getUserData, putUserData
getNavigationElement
isWritable
public PsiTypeParameter getParameter()
public PsiType getInstantiation()
public void setInstantiation(PsiType instantiation)
public PsiClassType [] getExtendsListTypes()
PsiClass
getExtendsListTypes
in interface PsiClass
getExtendsListTypes
in class AbstractLightClass
public static void addBound(PsiType inferenceVariableType, PsiType boundType, InferenceBound inferenceBound, InferenceSession session)
public java.util.List<PsiType> getBounds(InferenceBound inferenceBound)
public java.util.Set<InferenceVariable> getDependencies(InferenceSession session)
public void setThrownBound()
public boolean isInheritor(PsiClass baseClass, boolean checkDeep)
PsiClass
ClassInheritorsSearch
may return classes that are inheritors in broader, e.g. in ejb sense, but not in java sense.isInheritor
in interface PsiClass
isInheritor
in class AbstractLightClass
baseClass
- the base class to check the inheritance.checkDeep
- if false, only direct inheritance is checked; if true, the base class is
searched in the entire inheritance chainpublic boolean isEquivalentTo(PsiElement another)
PsiElement
PsiManager.areElementsEquivalent(PsiElement, PsiElement)
internally, which clients should invoke instead.
Implementations of this method should return true
if the parameter is resolve-equivalent to this
, i.e. it represents
the same entity from the language perspective. See also PsiManager.areElementsEquivalent(PsiElement, PsiElement)
documentation.isEquivalentTo
in interface PsiElement
isEquivalentTo
in class AbstractLightClass
public boolean useDelegateToSubstitute()
useDelegateToSubstitute
in class LightTypeParameter
public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class LightTypeParameter
public PsiTypeParameterListOwner getOwner()
PsiTypeParameter
getOwner
in interface JvmTypeParameter
getOwner
in interface PsiTypeParameter
getOwner
in class LightTypeParameter
TypeVariable.getGenericDeclaration()
public java.lang.String getName()
PsiNamedElement
getName
in interface JvmClass
getName
in interface JvmMember
getName
in interface JvmNamedElement
getName
in interface NavigationItem
getName
in interface PomNamedTarget
getName
in interface PsiNamedElement
getName
in interface PsiQualifiedNamedElement
getName
in class AbstractLightClass
Member.getName()