public class CompositeBlockWrapper extends AbstractBlockWrapper
myEnd, myFlags, myIndentFromParent, myParent, myStart| Constructor and Description |
|---|
CompositeBlockWrapper(Block block,
WhiteSpace whiteSpaceBefore,
CompositeBlockWrapper parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.util.List<AbstractBlockWrapper> |
getChildren() |
IndentData |
getNumberOfSymbolsBeforeBlock()
Allows to retrieve object that encapsulates information about number of symbols before the current block starting
from the line start.
|
AbstractBlockWrapper |
getPrevIndentedSibling(AbstractBlockWrapper current)
Tries to find child block of the current composite block that contains line feeds and starts before the given block
(i.e.
|
protected LeafBlockWrapper |
getPreviousBlock() |
protected boolean |
indentAlreadyUsedBefore(AbstractBlockWrapper child)
Allows to answer if current wrapped block has a child block that is located before given block and has line feed.
|
void |
reset() |
void |
setChildren(java.util.List<AbstractBlockWrapper> children) |
arrangeParentTextRange, arrangeStartOffset, calculateChildOffset, findFirstIndentedParent, getAlignment, getAlignmentAtStartOffset, getChildOffset, getEndOffset, getIndent, getLanguage, getLength, getNode, getOwnWrap, getParent, getStartOffset, getWhiteSpace, getWrap, getWraps, isIncomplete, setCanUseFirstChildIndentAsBlockIndent, setIndent, setIndentFromParent, toStringpublic CompositeBlockWrapper(Block block, WhiteSpace whiteSpaceBefore, CompositeBlockWrapper parent)
public java.util.List<AbstractBlockWrapper> getChildren()
public void setChildren(java.util.List<AbstractBlockWrapper> children)
public void reset()
reset in class AbstractBlockWrapperprotected boolean indentAlreadyUsedBefore(AbstractBlockWrapper child)
AbstractBlockWrapperindentAlreadyUsedBefore in class AbstractBlockWrapperchild - target child block to processtrue if current block has a child that is located before the given block and contains line feed;
false otherwisepublic IndentData getNumberOfSymbolsBeforeBlock()
AbstractBlockWrappergetNumberOfSymbolsBeforeBlock in class AbstractBlockWrapperprotected LeafBlockWrapper getPreviousBlock()
getPreviousBlock in class AbstractBlockWrappernull otherwisepublic void dispose()
dispose in class AbstractBlockWrapperpublic AbstractBlockWrapper getPrevIndentedSibling(AbstractBlockWrapper current)
start offset is less than start offset of the given block).current - block that defines right boundary for child blocks processingnull otherwise