public class TextBlockBlock extends AbstractJavaBlock
myAlignmentStrategy, myChildAlignment, myChildIndent, myIndentSettings, myJavaSettings, myReservedAlignment, myReservedAlignment2, mySettings, myUseChildAttributesEMPTY, myAlignment, myNode, myWrap| Constructor and Description |
|---|
TextBlockBlock(ASTNode textBlock,
Wrap wrap,
AlignmentStrategy alignment,
Indent indent,
CommonCodeStyleSettings settings,
JavaCodeStyleSettings javaSettings,
FormattingMode formattingMode) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<Block> |
buildChildren() |
Indent |
getIndent()
Returns an indent object indicating how this block is indented relative
to its parent block.
|
Spacing |
getSpacing(Block child1,
Block child2)
Returns a spacing object indicating what spaces and/or line breaks are added between two
specified children of this block.
|
boolean |
isLeaf()
Returns true if the specified block may not contain child blocks.
|
arrangeChildWrap, chooseAlignment, composeCodeBlock, createAlignment, createAlignment, createChildAlignment, createChildWrap, createCodeBlockBlock, createJavaBlock, createJavaBlock, createNormalIndent, createNormalIndent, getChildAttributes, getChildIndent, getCodeBlockChildExternalIndent, getCodeBlockExternalIndent, getCodeBlockInternalIndent, getFirstTreeNode, getFormattingMode, getParentBlock, getReservedWrap, getSettings, getStrategyProvider, getTreeNode, getUsedAlignment, isAfter, isRBrace, isStatement, newJavaBlock, newJavaBlock, processChild, processChild, processChild, setParentBlock, setReservedWrapgetAlignment, getExtraRangesToFormat, getNode, getSubBlocks, getTextRange, getWrap, isBuildIndentsOnly, isIncomplete, setBuildIndentsOnly, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementType, getNode, getPsiElementgetDebugNamepublic TextBlockBlock(ASTNode textBlock, Wrap wrap, AlignmentStrategy alignment, Indent indent, CommonCodeStyleSettings settings, JavaCodeStyleSettings javaSettings, FormattingMode formattingMode)
protected java.util.List<Block> buildChildren()
buildChildren in class AbstractBlockpublic Spacing getSpacing(Block child1, Block child2)
BlockgetSpacing in interface BlockgetSpacing in class AbstractJavaBlockchild1 - the first child for which spacing is requested;
null if given 'child2' block is the first document blockchild2 - the second child for which spacing is requested.Spacing.createSpacing(int, int, int, boolean, int),
Spacing.getReadOnlySpacing()public Indent getIndent()
BlockgetIndent in interface BlockgetIndent in class AbstractJavaBlockIndent.getContinuationWithoutFirstIndent()public boolean isLeaf()
BlockBlock.getSubBlocks().isLeaf in interface BlockisLeaf in class AbstractJavaBlock