public class JavaElseRemover extends JavaElseUnwrapperBase
JavaUnwrapper.Context
AbstractUnwrapper.AbstractContext
Constructor and Description |
---|
JavaElseRemover() |
Modifier and Type | Method and Description |
---|---|
PsiElement |
collectAffectedElements(PsiElement e,
java.util.List<PsiElement> toExtract) |
protected void |
unwrapElseBranch(PsiStatement branch,
PsiElement parent,
JavaUnwrapper.Context context) |
collectElementsToIgnore, doUnwrap, isApplicableTo
createContext
getDescription, unwrap
public PsiElement collectAffectedElements(PsiElement e, java.util.List<PsiElement> toExtract)
collectAffectedElements
in interface Unwrapper
collectAffectedElements
in class AbstractUnwrapper<JavaUnwrapper.Context>
toExtract
- the elements that will be extractedprotected void unwrapElseBranch(PsiStatement branch, PsiElement parent, JavaUnwrapper.Context context) throws IncorrectOperationException
unwrapElseBranch
in class JavaElseUnwrapperBase
IncorrectOperationException