public abstract static class AbstractUnwrapper.AbstractContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PsiElement> |
myElementsToExtract |
protected boolean |
myIsEffective |
Constructor and Description |
---|
AbstractContext() |
Modifier and Type | Method and Description |
---|---|
void |
addElementToExtract(PsiElement e) |
protected PsiElement |
addRangeBefore(PsiElement first,
PsiElement last,
PsiElement parent,
PsiElement anchor)
Adds range [first, last] before anchor under parent.
|
void |
delete(PsiElement e) |
void |
deleteExactly(PsiElement e) |
protected void |
extract(PsiElement first,
PsiElement last,
PsiElement from) |
void |
extractElement(PsiElement element,
PsiElement from) |
boolean |
isEffective() |
protected abstract boolean |
isWhiteSpace(PsiElement element) |
protected final java.util.List<PsiElement> myElementsToExtract
protected boolean myIsEffective
public void addElementToExtract(PsiElement e)
public void extractElement(PsiElement element, PsiElement from) throws IncorrectOperationException
IncorrectOperationException
protected abstract boolean isWhiteSpace(PsiElement element)
protected void extract(PsiElement first, PsiElement last, PsiElement from) throws IncorrectOperationException
IncorrectOperationException
protected PsiElement addRangeBefore(PsiElement first, PsiElement last, PsiElement parent, PsiElement anchor) throws IncorrectOperationException
first
- last
- parent
- anchor
- IncorrectOperationException
public void delete(PsiElement e) throws IncorrectOperationException
IncorrectOperationException
public void deleteExactly(PsiElement e) throws IncorrectOperationException
IncorrectOperationException
public final boolean isEffective()