public class FormatProcessor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FormatProcessor.ChildAttributesInfo |
static class |
FormatProcessor.FormatOptions |
Constructor and Description |
---|
FormatProcessor(FormattingDocumentModel docModel,
Block rootBlock,
CodeStyleSettings settings,
CommonCodeStyleSettings.IndentOptions indentOptions,
FormatTextRanges affectedRanges,
FormattingProgressCallback progressCallback) |
FormatProcessor(FormattingDocumentModel model,
Block block,
FormatProcessor.FormatOptions options,
FormattingProgressCallback callback) |
Modifier and Type | Method and Description |
---|---|
void |
format(FormattingModel model) |
void |
format(FormattingModel model,
boolean sequentially) |
void |
formatWithoutRealModifications() |
void |
formatWithoutRealModifications(boolean sequentially) |
BlockRangesMap |
getBlockRangesMap() |
LeafBlockWrapper |
getFirstTokenBlock() |
IndentInfo |
getIndentAt(int offset) |
WhiteSpace |
getLastWhiteSpace() |
boolean |
iteration() |
void |
performModifications(FormattingModel model) |
void |
performModifications(FormattingModel model,
boolean sequentially) |
void |
setAllWhiteSpacesAreReadOnly() |
void |
stopSequentialProcessing()
Asks current processor to stop any active sequential processing if any.
|
public FormatProcessor(FormattingDocumentModel docModel, Block rootBlock, CodeStyleSettings settings, CommonCodeStyleSettings.IndentOptions indentOptions, FormatTextRanges affectedRanges, FormattingProgressCallback progressCallback)
public FormatProcessor(FormattingDocumentModel model, Block block, FormatProcessor.FormatOptions options, FormattingProgressCallback callback)
public BlockRangesMap getBlockRangesMap()
public void format(FormattingModel model)
public void format(FormattingModel model, boolean sequentially)
public boolean iteration()
public void stopSequentialProcessing()
public void formatWithoutRealModifications()
public void formatWithoutRealModifications(boolean sequentially)
public void performModifications(FormattingModel model)
public void performModifications(FormattingModel model, boolean sequentially)
public void setAllWhiteSpacesAreReadOnly()
public IndentInfo getIndentAt(int offset)
public LeafBlockWrapper getFirstTokenBlock()
public WhiteSpace getLastWhiteSpace()