public class SimpleJavaBlock extends AbstractJavaBlock
myAlignmentStrategy, myChildAlignment, myChildIndent, myIndentSettings, myJavaSettings, myReservedAlignment, myReservedAlignment2, mySettings, myUseChildAttributesEMPTY, myAlignment, myNode, myWrap| Constructor and Description |
|---|
SimpleJavaBlock(ASTNode node,
Wrap wrap,
AlignmentStrategy 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.
|
Wrap |
getReservedWrap(IElementType elementType)
Note: this method is considered to be a legacy heritage and is assumed to be removed as soon as formatting processing
is refactored
|
TextRange |
getTextRange()
Returns the text range covered by the block.
|
void |
setReservedWrap(Wrap reservedWrap,
IElementType operationType)
Defines contract for associating operation type and particular wrap instance.
|
void |
setStartOffset(int startOffset) |
arrangeChildWrap, chooseAlignment, composeCodeBlock, createAlignment, createAlignment, createChildAlignment, createChildWrap, createCodeBlockBlock, createJavaBlock, createJavaBlock, createNormalIndent, createNormalIndent, getChildIndent, getCodeBlockChildExternalIndent, getCodeBlockExternalIndent, getCodeBlockInternalIndent, getFirstTreeNode, getFormattingMode, getIndent, getParentBlock, getSettings, getSpacing, getStrategyProvider, getTreeNode, getUsedAlignment, isAfter, isLeaf, isRBrace, isStatement, newJavaBlock, newJavaBlock, processChild, processChild, processChild, setParentBlockgetAlignment, getExtraRangesToFormat, getNode, getSubBlocks, getWrap, isBuildIndentsOnly, isIncomplete, setBuildIndentsOnly, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementType, getNode, getPsiElementgetDebugNamepublic SimpleJavaBlock(ASTNode node, Wrap wrap, AlignmentStrategy alignment, Indent indent, CommonCodeStyleSettings settings, JavaCodeStyleSettings javaSettings, FormattingMode formattingMode)
protected java.util.List<Block> buildChildren()
buildChildren in class AbstractBlockpublic TextRange getTextRange()
BlockgetTextRange in interface BlockgetTextRange in class AbstractBlockpublic ChildAttributes getChildAttributes(int newChildIndex)
BlockgetChildAttributes in interface BlockgetChildAttributes in class AbstractJavaBlocknewChildIndex - the index where a new child is inserted.public Wrap getReservedWrap(IElementType elementType)
AbstractJavaBlockgetReservedWrap in interface ReservedWrapsProvidergetReservedWrap in class AbstractJavaBlockelementType - target element typenull all the timepublic void setReservedWrap(Wrap reservedWrap, IElementType operationType)
AbstractJavaBlockAbstractJavaBlock.getReservedWrap(IElementType) call if given operation type is used as an argument there.
Default implementation (AbstractJavaBlock.setReservedWrap(Wrap, IElementType)) does nothing.
Note: this method is considered to be a legacy heritage and is assumed to be removed as soon as formatting processing
is refactoredsetReservedWrap in class AbstractJavaBlockreservedWrap - reserved wrap instanceoperationType - target operation type to associate with the given wrap instancepublic void setStartOffset(int startOffset)