public abstract class JavaElseUnwrapperBase extends JavaUnwrapper
JavaUnwrapper.Context
AbstractUnwrapper.AbstractContext
Constructor and Description |
---|
JavaElseUnwrapperBase(java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
void |
collectElementsToIgnore(PsiElement element,
java.util.Set<PsiElement> result) |
protected void |
doUnwrap(PsiElement element,
JavaUnwrapper.Context context) |
boolean |
isApplicableTo(PsiElement e) |
protected abstract void |
unwrapElseBranch(PsiStatement branch,
PsiElement parent,
JavaUnwrapper.Context context) |
createContext
collectAffectedElements, getDescription, unwrap
public boolean isApplicableTo(PsiElement e)
isApplicableTo
in interface Unwrapper
isApplicableTo
in class AbstractUnwrapper<JavaUnwrapper.Context>
public void collectElementsToIgnore(PsiElement element, java.util.Set<PsiElement> result)
collectElementsToIgnore
in interface Unwrapper
collectElementsToIgnore
in class AbstractUnwrapper<JavaUnwrapper.Context>
protected void doUnwrap(PsiElement element, JavaUnwrapper.Context context) throws IncorrectOperationException
doUnwrap
in class AbstractUnwrapper<JavaUnwrapper.Context>
IncorrectOperationException
protected abstract void unwrapElseBranch(PsiStatement branch, PsiElement parent, JavaUnwrapper.Context context) throws IncorrectOperationException
IncorrectOperationException