public class ReplaceWithTernaryOperatorFix extends java.lang.Object implements LocalQuickFix
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplaceWithTernaryOperatorFix.ReplaceMethodRefWithTernaryOperatorFix |
EMPTY_ARRAY| Constructor and Description |
|---|
ReplaceWithTernaryOperatorFix(PsiExpression expressionToAssert) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
java.lang.String |
getName() |
static boolean |
isAvailable(PsiExpression qualifier,
PsiExpression expression) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablestartInWriteActionpublic ReplaceWithTernaryOperatorFix(PsiExpression expressionToAssert)
public java.lang.String getName()
getName in interface QuickFix<ProblemDescriptor>public java.lang.String getFamilyName()
getFamilyName in interface QuickFix<ProblemDescriptor>QuickFix.getName().public void applyFix(Project project, ProblemDescriptor descriptor)
QuickFix
Please call com.intellij.profile.codeInspection.ProjectInspectionProfileManager#fireProfileChanged() if inspection profile is changed as result of fix.
applyFix in interface QuickFix<ProblemDescriptor>project - Projectdescriptor - problem reported by the tool which provided this quick fix actionpublic static boolean isAvailable(PsiExpression qualifier, PsiExpression expression)