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, myToTypeEMPTY_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, startInWriteActionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrioritygetElementToMakeWritablepublic static final ArgumentFixerActionFactory REGISTAR
protected WrapObjectWithOptionalOfNullableFix(PsiExpressionList list, int i, PsiType toType, ArgumentFixerActionFactory fixerActionFactory)
public java.lang.String getText()
IntentionActiongetText in interface IntentionActionIntentionAction.isAvailable(Project, Editor, PsiFile)public boolean isAvailable(Project project, Editor editor, PsiFile file)
IntentionActionisAvailable in interface IntentionActionisAvailable in class MethodArgumentFixproject - 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)