public interface Formatter
Modifier and Type | Method and Description |
---|---|
Alignment |
createAlignment(boolean allowBackwardShift,
Alignment.Anchor anchor)
Provides implementation for
Alignment.createAlignment(boolean, Alignment.Anchor) . |
Alignment |
createChildAlignment(Alignment base)
Provides
|
Wrap |
createChildWrap(Wrap parentWrap,
WrapType wrapType,
boolean wrapFirstElement) |
Spacing |
createDependentLFSpacing(int minSpaces,
int maxSpaces,
java.util.List<TextRange> dependencyRange,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule) |
Spacing |
createDependentLFSpacing(int minSpaces,
int maxSpaces,
TextRange dependencyRange,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule) |
FormattingModel |
createFormattingModelForPsiFile(PsiFile file,
Block rootBlock,
CodeStyleSettings settings) |
Spacing |
createKeepingFirstColumnSpacing(int minSpaces,
int maxSpaces,
boolean keepLineBreaks,
int keepBlankLines) |
Spacing |
createSafeSpacing(boolean keepLineBreaks,
int keepBlankLines) |
Spacing |
createSpacing(int minSpaces,
int maxSpaces,
int minLineFeeds,
boolean keepLineBreaks,
int keepBlankLines) |
Spacing |
createSpacing(int minSpaces,
int maxSpaces,
int minLineFeeds,
boolean keepLineBreaks,
int keepBlankLines,
int prefLineFeeds) |
Wrap |
createWrap(WrapType type,
boolean wrapFirstElement) |
Indent |
getAbsoluteLabelIndent() |
Indent |
getAbsoluteNoneIndent() |
Indent |
getContinuationIndent(boolean relativeToDirectParent) |
Indent |
getContinuationWithoutFirstIndent(boolean relativeToDirectParent) |
Indent |
getIndent(Indent.Type type,
boolean relativeToDirectParent,
boolean enforceIndentToChildren) |
Indent |
getIndent(Indent.Type type,
int spaces,
boolean relativeToDirectParent,
boolean enforceIndentToChildren) |
static Formatter |
getInstance() |
Indent |
getLabelIndent() |
Indent |
getNoneIndent() |
Indent |
getNormalIndent(boolean relativeToDirectParent) |
Spacing |
getReadOnlySpacing() |
Indent |
getSmartIndent(Indent.Type type) |
Indent |
getSpaceIndent(int spaces,
boolean relativeToDirectParent) |
static Formatter getInstance()
Indent getNormalIndent(boolean relativeToDirectParent)
Indent getNoneIndent()
Indent getAbsoluteNoneIndent()
Indent getAbsoluteLabelIndent()
Indent getLabelIndent()
Indent getContinuationIndent(boolean relativeToDirectParent)
Indent getContinuationWithoutFirstIndent(boolean relativeToDirectParent)
Indent getSpaceIndent(int spaces, boolean relativeToDirectParent)
Indent getIndent(Indent.Type type, boolean relativeToDirectParent, boolean enforceIndentToChildren)
Indent getIndent(Indent.Type type, int spaces, boolean relativeToDirectParent, boolean enforceIndentToChildren)
Indent getSmartIndent(Indent.Type type)
Alignment createAlignment(boolean allowBackwardShift, Alignment.Anchor anchor)
Alignment.createAlignment(boolean, Alignment.Anchor)
.allowBackwardShift
- flag that specifies if former aligned block may be shifted to right in order to align to subsequent
aligned blockanchor
- alignment anchorAlignment createChildAlignment(Alignment base)
base
- base alignment to use within returned alignment object'base alignment'
Spacing createSpacing(int minSpaces, int maxSpaces, int minLineFeeds, boolean keepLineBreaks, int keepBlankLines)
Spacing getReadOnlySpacing()
Spacing createDependentLFSpacing(int minSpaces, int maxSpaces, TextRange dependencyRange, boolean keepLineBreaks, int keepBlankLines, DependentSpacingRule rule)
Spacing createDependentLFSpacing(int minSpaces, int maxSpaces, java.util.List<TextRange> dependencyRange, boolean keepLineBreaks, int keepBlankLines, DependentSpacingRule rule)
Spacing createSafeSpacing(boolean keepLineBreaks, int keepBlankLines)
Spacing createKeepingFirstColumnSpacing(int minSpaces, int maxSpaces, boolean keepLineBreaks, int keepBlankLines)
Spacing createSpacing(int minSpaces, int maxSpaces, int minLineFeeds, boolean keepLineBreaks, int keepBlankLines, int prefLineFeeds)
FormattingModel createFormattingModelForPsiFile(PsiFile file, Block rootBlock, CodeStyleSettings settings)