public class DependantSpacingImpl extends SpacingImpl
SpacingImpl in order to add notion of dependency range.
'Dependency' here affect minLineFieeds property value. See property contract for more details.myFlags| Constructor and Description |
|---|
DependantSpacingImpl(int minSpaces,
int maxSpaces,
java.util.List<TextRange> dependencyRanges,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule) |
DependantSpacingImpl(int minSpaces,
int maxSpaces,
TextRange dependency,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TextRange> |
getDependentRegionRanges() |
int |
getKeepBlankLines() |
int |
getMinLineFeeds() |
boolean |
isDependentRegionLinefeedStatusChanged()
Allows to answer whether 'contains line feed' status has been changed for the target dependent region during formatting.
|
void |
refresh(BlockRangesMap helper)
Allows to ask to refresh current state using given formatter if necessary.
|
void |
setDependentRegionLinefeedStatusChanged()
Allows to set
'dependent region changed' property. |
java.lang.String |
toString() |
equals, getMaxSpaces, getMinSpaces, getPrefLineFeeds, hashCode, isReadOnly, isSafe, shouldKeepFirstColumn, shouldKeepLineFeedscreateDependentLFSpacing, createDependentLFSpacing, createDependentLFSpacing, createKeepingFirstColumnSpacing, createSafeSpacing, createSpacing, createSpacing, getReadOnlySpacingpublic DependantSpacingImpl(int minSpaces,
int maxSpaces,
TextRange dependency,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule)
public DependantSpacingImpl(int minSpaces,
int maxSpaces,
java.util.List<TextRange> dependencyRanges,
boolean keepLineBreaks,
int keepBlankLines,
DependentSpacingRule rule)
public int getMinLineFeeds()
getMinLineFeeds in class SpacingImpl1 if dependency has line feeds; 0 otherwisepublic int getKeepBlankLines()
getKeepBlankLines in class SpacingImplpublic void refresh(BlockRangesMap helper)
SpacingImplrefresh in class SpacingImplpublic java.util.List<TextRange> getDependentRegionRanges()
public final boolean isDependentRegionLinefeedStatusChanged()
true if target 'contains line feed' status has been changed for the target dependent region during formatting;
false otherwisepublic final void setDependentRegionLinefeedStatusChanged()
'dependent region changed' property.public java.lang.String toString()
toString in class SpacingImpl