public class InferenceVariable extends LightTypeParameter
Iconable.IconFlags, Iconable.LastComputedIconmyManagerFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYICON_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, getIndexfindFieldByName, 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, setNameadd, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isPhysical, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, getBounds, getExtendsList, hasAnnotationfindFieldByName, 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, setNamegetIdentifyingElementisDeprecatedgetDocCommentgetTypeParameterList, getTypeParameters, hasTypeParametersgetPresentationcanNavigate, canNavigateToSource, navigategetAnnotation, getSourceElement, hasModifiergetModifierList, hasModifierPropertyacceptChildren, 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, textToCharArraygetUserData, putUserDatagetNavigationElementisWritablepublic PsiTypeParameter getParameter()
public PsiType getInstantiation()
public void setInstantiation(PsiType instantiation)
public PsiClassType [] getExtendsListTypes()
PsiClassgetExtendsListTypes in interface PsiClassgetExtendsListTypes in class AbstractLightClasspublic 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)
PsiClassClassInheritorsSearch
may return classes that are inheritors in broader, e.g. in ejb sense, but not in java sense.isInheritor in interface PsiClassisInheritor in class AbstractLightClassbaseClass - 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)
PsiElementPsiManager.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 PsiElementisEquivalentTo in class AbstractLightClasspublic boolean useDelegateToSubstitute()
useDelegateToSubstitute in class LightTypeParameterpublic java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class LightTypeParameterpublic PsiTypeParameterListOwner getOwner()
PsiTypeParametergetOwner in interface JvmTypeParametergetOwner in interface PsiTypeParametergetOwner in class LightTypeParameterTypeVariable.getGenericDeclaration()public java.lang.String getName()
PsiNamedElementgetName in interface JvmClassgetName in interface JvmMembergetName in interface JvmNamedElementgetName in interface NavigationItemgetName in interface PomNamedTargetgetName in interface PsiNamedElementgetName in interface PsiQualifiedNamedElementgetName in class AbstractLightClassMember.getName()