protected static class JavaUnwrapper.Context extends AbstractUnwrapper.AbstractContext
myElementsToExtract, myIsEffective
Modifier | Constructor and Description |
---|---|
protected |
Context() |
Modifier and Type | Method and Description |
---|---|
void |
extractFromBlockOrSingleStatement(PsiStatement block,
PsiElement from) |
void |
extractFromCodeBlock(PsiCodeBlock block,
PsiElement from) |
protected boolean |
isWhiteSpace(PsiElement element) |
void |
setElseBranch(PsiIfStatement ifStatement,
PsiStatement elseBranch) |
void |
setInitializer(PsiVariable variable,
PsiExpression returnValue) |
addElementToExtract, addRangeBefore, delete, deleteExactly, extract, extractElement, isEffective
public void extractFromBlockOrSingleStatement(PsiStatement block, PsiElement from) throws IncorrectOperationException
IncorrectOperationException
public void extractFromCodeBlock(PsiCodeBlock block, PsiElement from) throws IncorrectOperationException
IncorrectOperationException
public void setElseBranch(PsiIfStatement ifStatement, PsiStatement elseBranch) throws IncorrectOperationException
IncorrectOperationException
protected boolean isWhiteSpace(PsiElement element)
isWhiteSpace
in class AbstractUnwrapper.AbstractContext
public void setInitializer(PsiVariable variable, PsiExpression returnValue)