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
|
getInstancepublic PsiSubstitutor getSuperClassSubstitutor(PsiClass superClass, PsiClass derivedClass, GlobalSearchScope scope, PsiSubstitutor derivedSubstitutor)
JavaClassSuperssuperClass with
values that they have in derivedClass, given that type parameters in
derivedClass are bound by derivedSubstitutor.getSuperClassSubstitutor in class JavaClassSupersnull, if derivedClass doesn't inherit superClassPsiClass.isInheritor(PsiClass, boolean),
InheritanceUtil.isInheritorOrSelf(PsiClass, PsiClass, boolean)public void reportHierarchyInconsistency(PsiClass superClass, PsiClass derivedClass)
JavaClassSupersreportHierarchyInconsistency in class JavaClassSupers