public class RemoveUnusedVariableUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RemoveUnusedVariableUtil.RemoveMode |
Constructor and Description |
---|
RemoveUnusedVariableUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkSideEffects(PsiExpression element,
PsiVariable variableToIgnore,
java.util.List<? super PsiElement> sideEffects) |
static boolean |
isForLoopUpdate(PsiElement element) |
static PsiElement |
replaceElementWithExpression(PsiExpression expression,
PsiElementFactory factory,
PsiElement element) |
public static boolean checkSideEffects(PsiExpression element, PsiVariable variableToIgnore, java.util.List<? super PsiElement> sideEffects)
public static PsiElement replaceElementWithExpression(PsiExpression expression, PsiElementFactory factory, PsiElement element) throws IncorrectOperationException
IncorrectOperationException
public static boolean isForLoopUpdate(PsiElement element)