public class RenameJavaVariableProcessor extends RenameJavaMemberProcessor
DEFAULT, EP_NAME
Constructor and Description |
---|
RenameJavaVariableProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
addGetterOrSetterWithParameter(PsiMethod methodPrototype,
java.lang.String newName,
java.lang.String newPropertyName,
java.lang.String oldParameterName,
JavaCodeStyleManager manager,
java.util.Map<PsiElement,java.lang.String> allRenames) |
boolean |
canProcessElement(PsiElement element) |
void |
findCollisions(PsiElement element,
java.lang.String newName,
java.util.Map<? extends PsiElement,java.lang.String> allRenames,
java.util.List<UsageInfo> result) |
void |
findExistingNameConflicts(PsiElement element,
java.lang.String newName,
MultiMap<PsiElement,java.lang.String> conflicts) |
void |
findExistingNameConflicts(PsiElement element,
java.lang.String newName,
MultiMap<PsiElement,java.lang.String> conflicts,
java.util.Map<PsiElement,java.lang.String> allRenames) |
java.lang.String |
getHelpID(PsiElement element) |
java.lang.String |
getQualifiedNameAfterRename(PsiElement element,
java.lang.String newName,
boolean nonJava) |
boolean |
isToSearchForTextOccurrences(PsiElement element) |
boolean |
isToSearchInComments(PsiElement element) |
void |
prepareRenaming(PsiElement element,
java.lang.String newName,
java.util.Map<PsiElement,java.lang.String> allRenames)
Builds the complete set of elements to be renamed during the refactoring.
|
void |
renameElement(PsiElement psiElement,
java.lang.String newName,
UsageInfo [] usages,
RefactoringElementListener listener) |
void |
setToSearchForTextOccurrences(PsiElement element,
boolean enabled) |
void |
setToSearchInComments(PsiElement element,
boolean enabled) |
createMemberReference, createQualifiedMemberReference, findCollisionsAgainstNewName, findMemberHidesOuterMemberCollisions, qualifyMember, qualifyMember, qualifyOuterMemberReferences, qualifyStaticImportReferences
allForElement, createRenameDialog, createUsageInfo, findReferences, findReferences, findReferences, forcesShowPreview, forElement, getElementToSearchInStringsAndComments, getPostRenameCallback, getTextOccurrenceSearchStrings, isInplaceRenameSupported, prepareRenaming, showRenamePreviewButton, substituteElementToRename, substituteElementToRename
public boolean canProcessElement(PsiElement element)
canProcessElement
in class RenamePsiElementProcessor
public void renameElement(PsiElement psiElement, java.lang.String newName, UsageInfo [] usages, RefactoringElementListener listener) throws IncorrectOperationException
renameElement
in class RenamePsiElementProcessor
IncorrectOperationException
public void prepareRenaming(PsiElement element, java.lang.String newName, java.util.Map<PsiElement,java.lang.String> allRenames)
RenamePsiElementProcessor
prepareRenaming
in class RenamePsiElementProcessor
element
- the base element for the refactoring.newName
- the name into which the element is being renamed.allRenames
- the map (from element to its new name) into which all additional elements to be renamed should be stored.public static void addGetterOrSetterWithParameter(PsiMethod methodPrototype, java.lang.String newName, java.lang.String newPropertyName, java.lang.String oldParameterName, JavaCodeStyleManager manager, java.util.Map<PsiElement,java.lang.String> allRenames)
public void findCollisions(PsiElement element, java.lang.String newName, java.util.Map<? extends PsiElement,java.lang.String> allRenames, java.util.List<UsageInfo> result)
findCollisions
in class RenamePsiElementProcessor
public void findExistingNameConflicts(PsiElement element, java.lang.String newName, MultiMap<PsiElement,java.lang.String> conflicts, java.util.Map<PsiElement,java.lang.String> allRenames)
findExistingNameConflicts
in class RenamePsiElementProcessor
public void findExistingNameConflicts(PsiElement element, java.lang.String newName, MultiMap<PsiElement,java.lang.String> conflicts)
findExistingNameConflicts
in class RenamePsiElementProcessor
public java.lang.String getHelpID(PsiElement element)
getHelpID
in class RenamePsiElementProcessor
public boolean isToSearchInComments(PsiElement element)
isToSearchInComments
in class RenamePsiElementProcessor
public void setToSearchInComments(PsiElement element, boolean enabled)
setToSearchInComments
in class RenamePsiElementProcessor
public boolean isToSearchForTextOccurrences(PsiElement element)
isToSearchForTextOccurrences
in class RenamePsiElementProcessor
public void setToSearchForTextOccurrences(PsiElement element, boolean enabled)
setToSearchForTextOccurrences
in class RenamePsiElementProcessor
public java.lang.String getQualifiedNameAfterRename(PsiElement element, java.lang.String newName, boolean nonJava)
getQualifiedNameAfterRename
in class RenamePsiElementProcessor