public enum FormattingStateId extends java.lang.Enum<FormattingStateId>
Enum Constant and Description |
---|
APPLYING_CHANGES
This element corresponds to formatting phase when all
wrapped code blocks are processed and it's
time to apply the changes to the underlying document. |
EXPANDING_CHILDREN_INDENTS |
PROCESSING_BLOCKS
This element corresponds to the state when formatter sequentially processes
wrapped code blocks
and modifies their white spaces according to the current code style settings . |
WRAPPING_BLOCKS
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.util.Set<FormattingStateId> |
getPreviousStates() |
double |
getProgressWeight() |
static FormattingStateId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormattingStateId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormattingStateId WRAPPING_BLOCKS
InitialInfoBuilder.buildFrom(Block, int, CompositeBlockWrapper, WrapImpl, Block)
.
I.e. the first thing formatter does retrieval of all code blocks
from target model
and wrapping them in order to be able to store information about modified white spaces. That processing may trigger
blocks construction because most of our formatting models do that lazily, i.e. they define the
root block
and build its sub-blocks only on the first request
.public static final FormattingStateId PROCESSING_BLOCKS
wrapped code blocks
and modifies their white spaces
according to the current code style settings
.public static final FormattingStateId EXPANDING_CHILDREN_INDENTS
public static final FormattingStateId APPLYING_CHANGES
wrapped code blocks
are processed and it's
time to apply the changes to the underlying document.public static FormattingStateId[] values()
for (FormattingStateId c : FormattingStateId.values()) System.out.println(c);
public static FormattingStateId valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public double getProgressWeight()
'weight'
of the current state. Basically, it's assumed that every processing iteration of the state
with greater weight is executed longer that processing iteration of the state with the lower weightpublic java.util.Set<FormattingStateId> getPreviousStates()