public class IntroduceParameterUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultConstructor(UsageInfo usage,
UsageInfo[] usages,
IntroduceParameterData data) |
static void |
addSuperCall(UsageInfo usage,
UsageInfo[] usages,
IntroduceParameterData data) |
static void |
changeExternalUsage(UsageInfo usage,
UsageInfo[] usages,
IntroduceParameterData data) |
static void |
changeMethodSignatureAndResolveFieldConflicts(UsageInfo usage,
UsageInfo[] usages,
IntroduceParameterData data) |
static boolean |
insideMethodToBeReplaced(PsiElement methodUsage,
PsiMethod methodToReplaceIn) |
static boolean |
isMethodInUsages(IntroduceParameterData data,
PsiMethod method,
UsageInfo[] usages) |
static boolean |
isMethodUsage(UsageInfo usageInfo) |
static void |
processUsages(UsageInfo[] usages,
IntroduceParameterData data) |
public static boolean insideMethodToBeReplaced(PsiElement methodUsage, PsiMethod methodToReplaceIn)
public static boolean isMethodUsage(UsageInfo usageInfo)
public static void addSuperCall(UsageInfo usage, UsageInfo[] usages, IntroduceParameterData data) throws IncorrectOperationException
IncorrectOperationException
public static void addDefaultConstructor(UsageInfo usage, UsageInfo[] usages, IntroduceParameterData data) throws IncorrectOperationException
IncorrectOperationException
public static void changeExternalUsage(UsageInfo usage, UsageInfo[] usages, IntroduceParameterData data) throws IncorrectOperationException
IncorrectOperationException
public static void changeMethodSignatureAndResolveFieldConflicts(UsageInfo usage, UsageInfo[] usages, IntroduceParameterData data) throws IncorrectOperationException
IncorrectOperationException
public static void processUsages(UsageInfo[] usages, IntroduceParameterData data)
public static boolean isMethodInUsages(IntroduceParameterData data, PsiMethod method, UsageInfo[] usages)