public class JavaMoveClassToInnerHandler extends java.lang.Object implements MoveClassToInnerHandler
EP_NAME
Constructor and Description |
---|
JavaMoveClassToInnerHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.List<PsiElement> |
filterImports(java.util.List<UsageInfo> usageInfos,
Project project)
filters out import usages from results.
|
PsiClass |
moveClass(PsiClass aClass,
PsiClass targetClass) |
void |
removeRedundantImports(PsiFile targetClassFile) |
void |
retargetClassRefsInMoved(java.util.Map<PsiElement,PsiElement> oldToNewElementsMapping) |
void |
retargetNonCodeUsages(java.util.Map<PsiElement,PsiElement> oldToNewElementMap,
NonCodeUsageInfo [] nonCodeUsages) |
public PsiClass moveClass(PsiClass aClass, PsiClass targetClass)
moveClass
in interface MoveClassToInnerHandler
public java.util.List<PsiElement> filterImports(java.util.List<UsageInfo> usageInfos, Project project)
MoveClassToInnerHandler
filterImports
in interface MoveClassToInnerHandler
public void retargetClassRefsInMoved(java.util.Map<PsiElement,PsiElement> oldToNewElementsMapping)
retargetClassRefsInMoved
in interface MoveClassToInnerHandler
public void retargetNonCodeUsages(java.util.Map<PsiElement,PsiElement> oldToNewElementMap, NonCodeUsageInfo [] nonCodeUsages)
retargetNonCodeUsages
in interface MoveClassToInnerHandler
public void removeRedundantImports(PsiFile targetClassFile)
removeRedundantImports
in interface MoveClassToInnerHandler