public class CreateMethodFromUsageFix
extends java.lang.Object
Constructor and Description |
---|
CreateMethodFromUsageFix() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkTypeParam(PsiMethod method,
PsiTypeParameter typeParameter) |
static PsiMethod |
createMethod(PsiClass targetClass,
PsiClass parentClass,
PsiMember enclosingContext,
java.lang.String methodName) |
static void |
doCreate(PsiClass targetClass,
PsiMethod method,
boolean shouldBeAbstract,
java.util.List<? extends Pair<PsiExpression,PsiType>> arguments,
PsiSubstitutor substitutor,
ExpectedTypeInfo[] expectedTypes,
PsiElement context) |
static void |
doCreate(PsiClass targetClass,
PsiMethod method,
java.util.List<? extends Pair<PsiExpression,PsiType>> arguments,
PsiSubstitutor substitutor,
ExpectedTypeInfo[] expectedTypes,
PsiElement context) |
static boolean |
hasErrorsInArgumentList(PsiMethodCallExpression call) |
static boolean |
isMethodSignatureExists(PsiMethodCallExpression call,
PsiClass target) |
public static boolean isMethodSignatureExists(PsiMethodCallExpression call, PsiClass target)
public static boolean hasErrorsInArgumentList(PsiMethodCallExpression call)
public static PsiMethod createMethod(PsiClass targetClass, PsiClass parentClass, PsiMember enclosingContext, java.lang.String methodName)
public static void doCreate(PsiClass targetClass, PsiMethod method, java.util.List<? extends Pair<PsiExpression,PsiType>> arguments, PsiSubstitutor substitutor, ExpectedTypeInfo[] expectedTypes, PsiElement context)
public static void doCreate(PsiClass targetClass, PsiMethod method, boolean shouldBeAbstract, java.util.List<? extends Pair<PsiExpression,PsiType>> arguments, PsiSubstitutor substitutor, ExpectedTypeInfo[] expectedTypes, PsiElement context)
public static boolean checkTypeParam(PsiMethod method, PsiTypeParameter typeParameter)