public class JavaAnonymousUnwrapper extends JavaUnwrapper
JavaUnwrapper.Context
AbstractUnwrapper.AbstractContext
Constructor and Description |
---|
JavaAnonymousUnwrapper() |
Modifier and Type | Method and Description |
---|---|
PsiElement |
collectAffectedElements(PsiElement e,
java.util.List<PsiElement> toExtract) |
protected void |
doUnwrap(PsiElement element,
JavaUnwrapper.Context context) |
static PsiElement |
findElementToExtractFrom(PsiElement el) |
boolean |
isApplicableTo(PsiElement e) |
static boolean |
toAssignment(JavaUnwrapper.Context context,
PsiElement from,
PsiExpression returnValue) |
createContext
collectElementsToIgnore, getDescription, unwrap
public boolean isApplicableTo(PsiElement e)
isApplicableTo
in interface Unwrapper
isApplicableTo
in class AbstractUnwrapper<JavaUnwrapper.Context>
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 doUnwrap(PsiElement element, JavaUnwrapper.Context context) throws IncorrectOperationException
doUnwrap
in class AbstractUnwrapper<JavaUnwrapper.Context>
IncorrectOperationException
public static boolean toAssignment(JavaUnwrapper.Context context, PsiElement from, PsiExpression returnValue)
public static PsiElement findElementToExtractFrom(PsiElement el)