public class JavaClassSupersImpl extends JavaClassSupers
Constructor and Description |
---|
JavaClassSupersImpl() |
Modifier and Type | Method and Description |
---|---|
PsiSubstitutor |
getSuperClassSubstitutor(PsiClass superClass,
PsiClass derivedClass,
GlobalSearchScope scope,
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 . |
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
|
getInstance
public PsiSubstitutor getSuperClassSubstitutor(PsiClass superClass, PsiClass derivedClass, GlobalSearchScope scope, PsiSubstitutor derivedSubstitutor)
JavaClassSupers
superClass
with
values that they have in derivedClass
, given that type parameters in
derivedClass
are bound by derivedSubstitutor
.getSuperClassSubstitutor
in class JavaClassSupers
null
, if derivedClass
doesn't inherit superClass
PsiClass.isInheritor(PsiClass, boolean)
,
InheritanceUtil.isInheritorOrSelf(PsiClass, PsiClass, boolean)
public void reportHierarchyInconsistency(PsiClass superClass, PsiClass derivedClass)
JavaClassSupers
reportHierarchyInconsistency
in class JavaClassSupers