public class CommentWithInjectionBlock extends AbstractJavaBlock
myAlignmentStrategy, myChildAlignment, myChildIndent, myIndentSettings, myJavaSettings, myReservedAlignment, myReservedAlignment2, mySettings, myUseChildAttributes
EMPTY, myAlignment, myNode, myWrap
Constructor and Description |
---|
CommentWithInjectionBlock(ASTNode node,
Wrap wrap,
Alignment alignment,
Indent indent,
CommonCodeStyleSettings settings,
JavaCodeStyleSettings javaSettings,
FormattingMode formattingMode) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Block> |
buildChildren() |
ChildAttributes |
getChildAttributes(int newChildIndex)
Returns the alignment and indent attributes which are applied to a new block inserted at
the specified position in the list of children of this 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, getChildIndent, getCodeBlockChildExternalIndent, getCodeBlockExternalIndent, getCodeBlockInternalIndent, getFirstTreeNode, getFormattingMode, getIndent, getParentBlock, getReservedWrap, getSettings, getStrategyProvider, getTreeNode, getUsedAlignment, isAfter, isRBrace, isStatement, newJavaBlock, newJavaBlock, processChild, processChild, processChild, setParentBlock, setReservedWrap
getAlignment, getExtraRangesToFormat, getNode, getSubBlocks, getTextRange, getWrap, isBuildIndentsOnly, isIncomplete, setBuildIndentsOnly, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementType, getNode, getPsiElement
getDebugName
public CommentWithInjectionBlock(ASTNode node, Wrap wrap, Alignment alignment, Indent indent, CommonCodeStyleSettings settings, JavaCodeStyleSettings javaSettings, FormattingMode formattingMode)
protected java.util.List<Block> buildChildren()
buildChildren
in class AbstractBlock
public boolean isLeaf()
Block
Block.getSubBlocks()
.isLeaf
in interface Block
isLeaf
in class AbstractJavaBlock
public ChildAttributes getChildAttributes(int newChildIndex)
Block
getChildAttributes
in interface Block
getChildAttributes
in class AbstractJavaBlock
newChildIndex
- the index where a new child is inserted.public Spacing getSpacing(Block child1, Block child2)
Block
getSpacing
in interface Block
getSpacing
in class AbstractJavaBlock
child1
- 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()