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, isEffectivepublic void extractFromBlockOrSingleStatement(PsiStatement block, PsiElement from) throws IncorrectOperationException
IncorrectOperationExceptionpublic void extractFromCodeBlock(PsiCodeBlock block, PsiElement from) throws IncorrectOperationException
IncorrectOperationExceptionpublic void setElseBranch(PsiIfStatement ifStatement, PsiStatement elseBranch) throws IncorrectOperationException
IncorrectOperationExceptionprotected boolean isWhiteSpace(PsiElement element)
isWhiteSpace in class AbstractUnwrapper.AbstractContextpublic void setInitializer(PsiVariable variable, PsiExpression returnValue)