public abstract class JavaClassSupers
extends java.lang.Object
Constructor and Description |
---|
JavaClassSupers() |
Modifier and Type | Method and Description |
---|---|
static JavaClassSupers |
getInstance() |
abstract PsiSubstitutor |
getSuperClassSubstitutor(PsiClass superClass,
PsiClass derivedClass,
GlobalSearchScope resolveScope,
PsiSubstitutor derivedSubstitutor)
Calculates substitutor that binds type parameters in
superClass with
values that they have in derivedClass , given that type parameters in
derivedClass are bound by derivedSubstitutor . |
abstract void |
reportHierarchyInconsistency(PsiClass superClass,
PsiClass derivedClass)
Called internally when it's expected that derivedClass extends superClass, but no super class substitutor can be found for them
|
public static JavaClassSupers getInstance()
public abstract PsiSubstitutor getSuperClassSubstitutor(PsiClass superClass, PsiClass derivedClass, GlobalSearchScope resolveScope, PsiSubstitutor derivedSubstitutor)
superClass
with
values that they have in derivedClass
, given that type parameters in
derivedClass
are bound by derivedSubstitutor
.null
, if derivedClass
doesn't inherit superClass
PsiClass.isInheritor(PsiClass, boolean)
,
InheritanceUtil.isInheritorOrSelf(PsiClass, PsiClass, boolean)