public class MoveJavaMemberHandler extends java.lang.Object implements MoveMemberHandler
EP_NAME
Constructor and Description |
---|
MoveJavaMemberHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
changeExternalUsage(MoveMembersOptions options,
MoveMembersProcessor.MoveMembersUsageInfo usage) |
protected static void |
changeQualifier(PsiReferenceExpression refExpr,
PsiClass aClass,
PsiMember member) |
void |
checkConflictsOnMember(PsiMember member,
java.lang.String newVisibility,
PsiModifierList modifierListCopy,
PsiClass targetClass,
java.util.Set<PsiMember> membersToMove,
MultiMap<PsiElement,java.lang.String> conflicts) |
void |
checkConflictsOnUsage(MoveMembersProcessor.MoveMembersUsageInfo usageInfo,
PsiModifierList modifierListCopy,
PsiClass targetClass,
java.util.Set<PsiMember> membersToMove,
MoveMembersOptions moveMembersOptions,
MultiMap<PsiElement,java.lang.String> conflicts) |
void |
decodeContextInfo(PsiElement scope) |
PsiMember |
doMove(MoveMembersOptions options,
PsiMember member,
PsiElement anchor,
PsiClass targetClass) |
PsiElement |
getAnchor(PsiMember member,
PsiClass targetClass,
java.util.Set<PsiMember> membersToMove) |
MoveMembersProcessor.MoveMembersUsageInfo |
getUsage(PsiMember member,
PsiReference psiReference,
java.util.Set<PsiMember> membersToMove,
PsiClass targetClass) |
protected static boolean |
hasField(PsiClass targetClass,
PsiField field) |
protected static boolean |
hasMethod(PsiClass targetClass,
PsiMethod method) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkConflictsOnUsage
public MoveMembersProcessor.MoveMembersUsageInfo getUsage(PsiMember member, PsiReference psiReference, java.util.Set<PsiMember> membersToMove, PsiClass targetClass)
getUsage
in interface MoveMemberHandler
public void checkConflictsOnUsage(MoveMembersProcessor.MoveMembersUsageInfo usageInfo, PsiModifierList modifierListCopy, PsiClass targetClass, java.util.Set<PsiMember> membersToMove, MoveMembersOptions moveMembersOptions, MultiMap<PsiElement,java.lang.String> conflicts)
checkConflictsOnUsage
in interface MoveMemberHandler
public void checkConflictsOnMember(PsiMember member, java.lang.String newVisibility, PsiModifierList modifierListCopy, PsiClass targetClass, java.util.Set<PsiMember> membersToMove, MultiMap<PsiElement,java.lang.String> conflicts)
checkConflictsOnMember
in interface MoveMemberHandler
public boolean changeExternalUsage(MoveMembersOptions options, MoveMembersProcessor.MoveMembersUsageInfo usage)
changeExternalUsage
in interface MoveMemberHandler
protected static void changeQualifier(PsiReferenceExpression refExpr, PsiClass aClass, PsiMember member) throws IncorrectOperationException
IncorrectOperationException
public PsiMember doMove(MoveMembersOptions options, PsiMember member, PsiElement anchor, PsiClass targetClass)
doMove
in interface MoveMemberHandler
public void decodeContextInfo(PsiElement scope)
decodeContextInfo
in interface MoveMemberHandler
public PsiElement getAnchor(PsiMember member, PsiClass targetClass, java.util.Set<PsiMember> membersToMove)
getAnchor
in interface MoveMemberHandler