public class WrapObjectWithOptionalOfNullableFix extends MethodArgumentFix implements HighPriorityAction
Modifier and Type | Class and Description |
---|---|
static class |
WrapObjectWithOptionalOfNullableFix.MyFixerActionFactory |
PriorityAction.Priority
Modifier and Type | Field and Description |
---|---|
static ArgumentFixerActionFactory |
REGISTAR |
myArgList, myArgumentFixerActionFactory, myIndex, myToType
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
WrapObjectWithOptionalOfNullableFix(PsiExpressionList list,
int i,
PsiType toType,
ArgumentFixerActionFactory fixerActionFactory) |
Modifier and Type | Method and Description |
---|---|
static IntentionAction |
createFix(PsiType type,
PsiExpression expression) |
java.lang.String |
getText()
Returns text to be shown in the list of available actions, if this action
is available.
|
boolean |
isAvailable(Project project,
Editor editor,
PsiFile file)
Checks whether this intention is available at a caret offset in the file.
|
getFamilyName, invoke, startInWriteAction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
getElementToMakeWritable
public static final ArgumentFixerActionFactory REGISTAR
protected WrapObjectWithOptionalOfNullableFix(PsiExpressionList list, int i, PsiType toType, ArgumentFixerActionFactory fixerActionFactory)
public java.lang.String getText()
IntentionAction
getText
in interface IntentionAction
IntentionAction.isAvailable(Project, Editor, PsiFile)
public boolean isAvailable(Project project, Editor editor, PsiFile file)
IntentionAction
isAvailable
in interface IntentionAction
isAvailable
in class MethodArgumentFix
project
- the project in which the availability is checked.editor
- the editor in which the intention will be invoked.file
- the file open in the editor.true
if the intention is available, false
otherwise.public static IntentionAction createFix(PsiType type, PsiExpression expression)