public class RefactoringHierarchyUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
RefactoringHierarchyUtil.SuperTypeVisitor |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<PsiClass> |
createBasesList(PsiClass subClass,
boolean includeNonProject,
boolean sortAlphabetically) |
static PsiClass[] |
findImplementingClasses(PsiClass anInterface) |
static PsiClass |
getDeepestNonObjectBase(PsiClass aClass) |
static PsiClass |
getNearestBaseClass(PsiClass subClass,
boolean includeNonProject) |
static boolean |
isMemberBetween(PsiClass superClass,
PsiClass subClass,
PsiMember member)
Checks whether given element is below the given superClass in class hierarchy.
|
static void |
processSuperTypes(PsiType type,
RefactoringHierarchyUtil.SuperTypeVisitor visitor) |
static boolean |
willBeInTargetClass(PsiElement place,
java.util.Set<? extends PsiMember> membersToMove,
PsiClass targetClass,
boolean includeSubclasses) |
public static boolean willBeInTargetClass(PsiElement place, java.util.Set<? extends PsiMember> membersToMove, PsiClass targetClass, boolean includeSubclasses)
public static PsiClass getNearestBaseClass(PsiClass subClass, boolean includeNonProject)
public static java.util.ArrayList<PsiClass> createBasesList(PsiClass subClass, boolean includeNonProject, boolean sortAlphabetically)
subClass
- includeNonProject
- sortAlphabetically
- if false, sorted in DFS orderpublic static boolean isMemberBetween(PsiClass superClass, PsiClass subClass, PsiMember member)
superClass
- subClass
- member
- public static void processSuperTypes(PsiType type, RefactoringHierarchyUtil.SuperTypeVisitor visitor)