public class MethodReturnFixFactory extends ArgumentFixerActionFactory
Modifier and Type | Field and Description |
---|---|
static ArgumentFixerActionFactory |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
areTypesConvertible(PsiType exprType,
PsiType parameterType,
PsiElement context) |
IntentionAction |
createFix(PsiExpressionList list,
int i,
PsiType toType) |
protected PsiExpression |
getModifiedArgument(PsiExpression expression,
PsiType toType) |
registerCastActions
public static final ArgumentFixerActionFactory INSTANCE
protected PsiExpression getModifiedArgument(PsiExpression expression, PsiType toType) throws IncorrectOperationException
getModifiedArgument
in class ArgumentFixerActionFactory
IncorrectOperationException
public boolean areTypesConvertible(PsiType exprType, PsiType parameterType, PsiElement context)
areTypesConvertible
in class ArgumentFixerActionFactory
public IntentionAction createFix(PsiExpressionList list, int i, PsiType toType)
createFix
in class ArgumentFixerActionFactory